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.
Printable View
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.
See QPixmap::depth()
Quote:
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.