From kde-kimageshop Tue Jan 27 16:24:38 2004 From: Leonard Rosenthol Date: Tue, 27 Jan 2004 16:24:38 +0000 To: kde-kimageshop Subject: Re: Fixed painting on transparent layers Message-Id: <6.0.1.1.2.20040127112323.02772ec0 () mail1 ! netreach ! net> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=107525233926618 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 _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop