koffice/krita/core

Adrian Page adrian at pagenet.plus.com
Mon Mar 8 16:29:07 CET 2004


On Monday 08 March 2004 10:51 am, Patrick Julien wrote:
> > qRgba(255 - m_data[k++], 255 - m_data[k++], 255 - m_data[k++],
> >   255 - m_data[k++])
>
> Here, using MAX_OPACITY and downscale are required to retain the code's
> compile time independence on the channel depth.

This code is creating a QImage from a Gimp brush file so in this case it's not 
dependent on the channel depth.

Adrian


More information about the kimageshop mailing list