hasbus.blogg.se

Qimage ultimate 2014.136
Qimage ultimate 2014.136










There are also several functions that enables transformation of the image. QImage provides a collection of functions that can be used to obtain a variety of information about the image. These include monochrome, 8-bit, 32-bit and alpha-blended images which are available in all versions of Qt 4.x. The QImage class supports several image formats described by the Format enum. When using QPainter on a QImage, the painting can be performed in another thread than the current GUI thread. Finally, the QPicture class is a paint device that records and replays QPainter commands.īecause QImage is a QPaintDevice subclass, QPainter can be used to draw directly onto images. QBitmap is only a convenience class that inherits QPixmap, ensuring a depth of 1. QImage is designed and optimized for I/O, and for direct pixel access and manipulation, while QPixmap is designed and optimized for showing images on screen. Qt provides four classes for handling image data: QImage, QPixmap, QBitmap and QPicture. ()ĭef convertToFormat (f, colorTable)ĭef convertToFormat (f)ĭef convertToFormat_helper (format, flags)ĭef convertToFormat_inplace (format, flags)ĭef createAlphaMask ()ĭef createHeuristicMask ()ĭef createMaskFromColor (color)ĭef mirrored (])ĭef mirrored_helper (horizontal, vertical)ĭef mirrored_inplace (horizontal, vertical)ĭef save (device])ĭef save (fileName])ĭef scaled (s])ĭef scaled (w, h])ĭef scaledToHeight (h)ĭef scaledToWidth (w)ĭef transformed (matrix).












Qimage ultimate 2014.136