Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

int QImage::depth (  )  const

Returns the depth of the image.

The image depth is the number of bits used to encode a single pixel, also called bits per pixel (bpp) or bit planes of an image.

The supported depths are 1, 8 and 32.

See also:
convertToFormat(), {QImage::Image Formats}{Image Formats}, {QImage::Image Information}{Image Information}

Reimplemented from QPaintDevice.

Definition at line 1526 of file qimage.cpp.

Referenced by QPainter::begin(), QWindowSurface::buffer(), convertToFormat(), QRasterPaintEngine::drawImage(), invertPixels(), isGrayscale(), mirrored(), Q3ImageDrag::setImage(), and transformed().

{
    return d ? d->depth : 0;
}


Generated by  Doxygen 1.6.0   Back to index