From kde-kimageshop Thu Apr 06 09:57:07 2006 From: Boudewijn Rempt Date: Thu, 06 Apr 2006 09:57:07 +0000 To: kde-kimageshop Subject: Re: Colorspace functions Message-Id: X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=114431743730249 On Thu, 6 Apr 2006, Leonardo Giordani wrote: > A couple of questions about colorspace basic functions: > > When and why are the following functions called by Krita? Very, very often. > > 1) fromQColor() > 2) toQColor() Whenever we want to convert between colorspaces for which no lcms transform is possible, when we want to convert from QColor (for instance, on picking a color in a color selector) or the other way around: when the color picker is used and we want to show the selected color in the color selectors. We convert between colorspaces whenever we want to composite layers in two different colorspaces. > 3) bitBlt() For literally every painting action: just drawing a line is a collection of bitBlts. For compositing layers for display (all layers are bitBltted and only the root layer is converted to a QImage. > I promised to commit watercolor code some days ago: it is _really_ a mess > because of the bug chasing of the last week; I will wait a bit more in order > to clear it and give something that works. Boudewijn _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop