Fixed painting on transparent layers

Leonard Rosenthol leonardr at lazerware.com
Tue Jan 27 17:24:38 CET 2004


At 01:36 PM 1/26/2004, Boudewijn Rempt wrote:
>Ah! I see how it's done:
>
>frex:
>         case CopyRedCompositeOp:
>         case CopyCyanCompositeOp:
>         {
>           destination.red=source.red;
>           break;
>
>That's kind of hackish, isn't it :-)

         That's actually 100% correct since IM/GM use a single data 
structure (PixelPacket) to represent the image data, regardless of 
image/color mode - which is part of the reason we don't support dynamically 
sized components.

         So for a CMYK image, c is stored in red, m in green, etc.


LDR 




More information about the kimageshop mailing list