![]() ![]() 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. The QImage class provides a hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device. 1 protected function inherited from QPaintDevice.Operator> ( QDataStream & stream, QImage & image ) TrueMatrix ( const QTransform & matrix, int width, int height ) TrueMatrix ( const QMatrix & matrix, int width, int height ) 13 public functions inherited from QPaintDeviceįromData ( const uchar * data, int size, const char * format = 0 )įromData ( const QByteArray & data, const char * format = 0 ).Operator!= ( const QImage & image ) const Transformed ( const QTransform & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const Transformed ( const QMatrix & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const Text ( const QString & key = QString() ) const SetText ( const QString & key, const QString & text ) SetPixel ( int x, int y, uint index_or_rgb ) SetPixel ( const QPoint & position, uint index_or_rgb ) ScaledToWidth ( int width, Qt::TransformationMode mode = Qt::FastTransformation ) const ScaledToHeight ( int height, Qt::TransformationMode mode = Qt::FastTransformation ) const Scaled ( int width, int height, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const Scaled ( const QSize & size, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const Save ( QIODevice * device, const char * format = 0, int quality = -1 ) const Save ( const QString & fileName, const char * format = 0, int quality = -1 ) const PixelIndex ( const QPoint & position ) const Mirrored ( bool horizontal = false, bool vertical = true ) const LoadFromData ( const QByteArray & data, const char * format = 0 ) LoadFromData ( const uchar * data, int len, const char * format = 0 ) Load ( QIODevice * device, const char * format ) Load ( const QString & fileName, const char * format = 0 ) InvertPixels ( InvertMode mode = InvertRgb ) QImage ( const char * fileName, const char * format = 0 )ĬonvertToFormat ( Format format, Qt::ImageConversionFlags flags = Qt::AutoColor ) constĬonvertToFormat ( Format format, const QVector & colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor ) constĬopy ( const QRect & rectangle = QRect() ) constĬopy ( int x, int y, int width, int height ) constĬreateAlphaMask ( Qt::ImageConversionFlags flags = Qt::AutoColor ) constĬreateHeuristicMask ( bool clipTight = true ) constĬreateMaskFromColor ( QRgb color, Qt::MaskMode mode = Qt::MaskInColor ) const QImage ( const QString & fileName, const char * format = 0 ) QImage ( const uchar * data, int width, int height, int bytesPerLine, Format format ) QImage ( uchar * data, int width, int height, int bytesPerLine, Format format ) QImage ( const uchar * data, int width, int height, Format format ) QImage ( uchar * data, int width, int height, Format format ) ![]() QImage ( int width, int height, Format format ) QImage ( const QSize & size, Format format )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |