AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.03.17 10:47 "Photoshop Masked area TIFF images", by <mg76@inwind.it>
2005.03.17 20:13 "Re: Photoshop Masked area TIFF images", by Chris Cox

2005.03.17 10:47 "Photoshop Masked area TIFF images", by <mg76@inwind.it>

Hi,
I'm dealing with tiff photoshop images with extra channels. Usingg tifflib
I'v got the dat relative to extra channels kept in Photoshop Tag.

Now I'd like to know how is obtained the resulting color of the final pixel
deriving from a background pixel with a Mask areas Photoshop extra channel .

For example, if I have an RGB pixel A (255 255 255 0) and a mask of color
(255 0 0 )with opacity 0.75 I get as a resulting pixel after compositing:
P(255 137 137).

How?
Given a pixel A(r,g,b,0) and a mask color C(r1,g1,b1) with opacity x, what
is the resulting pixel after compositing? The compositing formula 
pixelOut[j]
=((1/MAXVALUE)*((MAXVALUE-alphaValue)*q[j]+(1/MAXVALUE)*alphaValue*(MAXVALUE-betaValue)*p[j]))+0.5;
does not work!!!

		
Does anyone can help me???

Thanks

Jade