[Development] QImage Support for Grayscale Images
christoph at maxiom.de
Tue Oct 25 22:29:52 CEST 2011
On Tuesday 25 October 2011 18:18:19 Keith Gardner wrote:
> Is there a plan for adding grayscale support to QImage? I know
> that there are enums in place in preparation for this capability.
> I have also looked at the bug tracker and found pages of bugs
> requesting this feature. I personally would like to see it
> implemented because I use grayscale textures in my apps and am
> also using a grayscale camera. This one missing feature is
> forcing me to use FreeImage directly to do my load/save operations
> even though I want to use only use Qt data types.
QImage supports 8 bit grayscale images via QImage::Format_Indexed8.
Depending on how you initialize the palette, you can have value 255
mean black or white.
Rendering to 8 bit images is not supported, though.
KDE Quality Team
More information about the Development