how to handle transparent parts of layers?

Comments and discussions about 8bf plugins which can be use in various applications like Photoshop, Paint Shop Pro or Photo-Paint
Post Reply
rgreene
Plugin Power User
Plugin Power User
Posts: 5
Joined: Fri Jun 23, 2006 5:10 am
Location: USA

how to handle transparent parts of layers?

Post by rgreene »

Does anyone know the right way to handle layers in a filter plugin so as to preserve the colors at the semi-transparent edges of the opaque parts of a layer?

It seems the inData I get from the plugin host (Photoshop or PSP) already has the image composited (based on the alpha channel) with a white background. So even if I just copy all the RGB and alpha data I get from inData back to outData, I end up with light-colored edges around the non-transparent parts of the layer. Telling the host that I only want to handle the RGB planes (by setting inHiPlane=outHiPlane=3) doesn't seem to work either. :cry:

HaraldHeim
Plugin Guru
Plugin Guru
Posts: 3363
Joined: Fri Mar 08, 2002 1:00 am
Location: The Plugin Site
Contact:

Post by HaraldHeim »

Best ask such questions on the Adobe SDK mailing list. To join send an email to sdk@adobe.com and put subscribe in the subject line.

Post Reply