PDA

View Full Version : Haw many channels does a QPixmap have?



ricardo
19th July 2009, 15:11
Hi friends!

Is it possoble to know how many channels a qpixmap have?
I see a hasAlphaChannel() method, but no more.
I would like to avoid black and white images (1 channel)

Any suggestion?

Thanks in advance.

jonks
19th July 2009, 16:39
See QPixmap::depth()


Returns the depth of the pixmap.

The pixmap depth is also called bits per pixel (bpp) or bit planes of a pixmap. A null pixmap has depth 0.