API reference - Class QImageNotation used in Ruby API documentation Description: Binding of QImage Class hierarchy: QImage » QPaintDevice Sub-classes: Format, InvertMode
Public constructors
Public methods
Public static methods and constants
Protected methods (static, non-static and constructors)
Deprecated methods (protected, public, static, non-static and constructors)
Detailed description[const] bool !=(const QImage arg1)Description: Method bool QImage::operator!=(const QImage &) [const] bool ==(const QImage arg1)Description: Method bool QImage::operator==(const QImage &) [static,const] new QImage_Format ptr Format_ARGB32Description: Enum constant QImage::Format_ARGB32 [static,const] new QImage_Format ptr Format_ARGB32_PremultipliedDescription: Enum constant QImage::Format_ARGB32_Premultiplied [static,const] new QImage_Format ptr Format_ARGB4444_PremultipliedDescription: Enum constant QImage::Format_ARGB4444_Premultiplied [static,const] new QImage_Format ptr Format_ARGB6666_PremultipliedDescription: Enum constant QImage::Format_ARGB6666_Premultiplied [static,const] new QImage_Format ptr Format_ARGB8555_PremultipliedDescription: Enum constant QImage::Format_ARGB8555_Premultiplied [static,const] new QImage_Format ptr Format_ARGB8565_PremultipliedDescription: Enum constant QImage::Format_ARGB8565_Premultiplied [static,const] new QImage_Format ptr Format_Indexed8Description: Enum constant QImage::Format_Indexed8 [static,const] new QImage_Format ptr Format_InvalidDescription: Enum constant QImage::Format_Invalid [static,const] new QImage_Format ptr Format_MonoDescription: Enum constant QImage::Format_Mono [static,const] new QImage_Format ptr Format_MonoLSBDescription: Enum constant QImage::Format_MonoLSB [static,const] new QImage_Format ptr Format_RGB16Description: Enum constant QImage::Format_RGB16 [static,const] new QImage_Format ptr Format_RGB32Description: Enum constant QImage::Format_RGB32 [static,const] new QImage_Format ptr Format_RGB444Description: Enum constant QImage::Format_RGB444 [static,const] new QImage_Format ptr Format_RGB555Description: Enum constant QImage::Format_RGB555 [static,const] new QImage_Format ptr Format_RGB666Description: Enum constant QImage::Format_RGB666 [static,const] new QImage_Format ptr Format_RGB888Description: Enum constant QImage::Format_RGB888 [static,const] new QImage_InvertMode ptr InvertRgbDescription: Enum constant QImage::InvertRgb [static,const] new QImage_InvertMode ptr InvertRgbaDescription: Enum constant QImage::InvertRgba [static,const] new QImage_Format ptr NImageFormatsDescription: Enum constant QImage::NImageFormats void _assign(const QImage other)Description: Assigns another object to self void _createDescription: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. void _destroyDescription: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. [const] bool _destroyed?Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. [const] bool _is_const_object?Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. void _manageDescription: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. void _unmanageDescription: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. [const] bool allGrayDescription: Method bool QImage::allGray() [const] QImage alphaChannelDescription: Method QImage QImage::alphaChannel() Python specific notes:The object exposes a readable attribute 'alphaChannel'. This is the getter. void alphaChannel=(const QImage alphaChannel)Description: Method void QImage::setAlphaChannel(const QImage &alphaChannel) Python specific notes:The object exposes a writable attribute 'alphaChannel'. This is the setter. void assign(const QImage other)Description: Assigns another object to self [const] string bitsDescription: Method const unsigned char *QImage::bits() [const] int byteCountDescription: Method int QImage::byteCount() [const] int bytesPerLineDescription: Method int QImage::bytesPerLine() [const] long long cacheKeyDescription: Method qint64 QImage::cacheKey() [const] unsigned int color(int i)Description: Method unsigned int QImage::color(int i) [const] int colorCountDescription: Method int QImage::colorCount() Python specific notes:The object exposes a readable attribute 'colorCount'. This is the getter. void colorCount=(int arg1)Description: Method void QImage::setColorCount(int) Python specific notes:The object exposes a writable attribute 'colorCount'. This is the setter. [const] unsigned int[] colorTableDescription: Method QVector<unsigned int> QImage::colorTable() Python specific notes:The object exposes a readable attribute 'colorTable'. This is the getter. void colorTable=(unsigned int[] colors)Description: Method void QImage::setColorTable(const QVector<unsigned int> colors) Python specific notes:The object exposes a writable attribute 'colorTable'. This is the setter. [const] QImage convertToFormat(const QImage_Format f,const Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)Description: Method QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags) [const] QImage convertToFormat(const QImage_Format f,unsigned int[] colorTable,const Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)Description: Method QImage QImage::convertToFormat(QImage::Format f, const QVector<unsigned int> &colorTable, QFlags<Qt::ImageConversionFlag> flags) [const] QImage copy(const QRect rect = QRect())Description: Method QImage QImage::copy(const QRect &rect) [const] QImage copy(int x,int y,int w,int h)Description: Method QImage QImage::copy(int x, int y, int w, int h) void createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [const] QImage createAlphaMask(const Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)Description: Method QImage QImage::createAlphaMask(QFlags<Qt::ImageConversionFlag> flags) [const] QImage createHeuristicMask(bool clipTight = true)Description: Method QImage QImage::createHeuristicMask(bool clipTight) [const] QImage createMaskFromColor(unsigned int color,const Qt_MaskMode mode = Qt::MaskInColor)Description: Method QImage QImage::createMaskFromColor(unsigned int color, Qt::MaskMode mode) [const] int depthDescription: Method int QImage::depth() void destroyDescription: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead [const] bool destroyed?Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead void detachDescription: Method void QImage::detach() [const] int dotsPerMeterXDescription: Method int QImage::dotsPerMeterX() Python specific notes:The object exposes a readable attribute 'dotsPerMeterX'. This is the getter. void dotsPerMeterX=(int arg1)Description: Method void QImage::setDotsPerMeterX(int) Python specific notes:The object exposes a writable attribute 'dotsPerMeterX'. This is the setter. [const] int dotsPerMeterYDescription: Method int QImage::dotsPerMeterY() Python specific notes:The object exposes a readable attribute 'dotsPerMeterY'. This is the getter. void dotsPerMeterY=(int arg1)Description: Method void QImage::setDotsPerMeterY(int) Python specific notes:The object exposes a writable attribute 'dotsPerMeterY'. This is the setter. [const] new QImage ptr dupDescription: Creates a copy of self void fill(unsigned int pixel)Description: Method void QImage::fill(unsigned int pixel) [const] QImage_Format formatDescription: Method QImage::Format QImage::format() [static] QImage fromData(string data,int size,string format = 0)Description: Static method QImage QImage::fromData(const unsigned char *data, int size, const char *format) This method is static and can be called without an instance. [static] QImage fromData(string data,string format = 0)Description: Static method QImage QImage::fromData(const QByteArray &data, const char *format) This method is static and can be called without an instance. [const] bool hasAlphaChannelDescription: Method bool QImage::hasAlphaChannel() [const] int heightDescription: Method int QImage::height() void invertPixels(const QImage_InvertMode arg1 = QImage::InvertRgb)Description: Method void QImage::invertPixels(QImage::InvertMode) [const] bool isDetached?Description: Method bool QImage::isDetached() [const] bool isGrayscale?Description: Method bool QImage::isGrayscale() [const] bool isNull?Description: Method bool QImage::isNull() [const] bool is_const_object?Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead bool load(QIODevice ptr device,string format)Description: Method bool QImage::load(QIODevice *device, const char *format) bool load(string fileName,string format = 0)Description: Method bool QImage::load(const QString &fileName, const char *format) bool loadFromData(string buf,int len,string format = 0)Description: Method bool QImage::loadFromData(const unsigned char *buf, int len, const char *format) bool loadFromData(string data,string aformat = 0)Description: Method bool QImage::loadFromData(const QByteArray &data, const char *aformat) [virtual,const] int metric(const QPaintDevice_PaintDeviceMetric metric)Description: Virtual method int QImage::metric(QPaintDevice::PaintDeviceMetric metric) This method can be reimplemented in a derived class. [const] QImage mirrored(bool horizontally = false,bool vertically = true)Description: Method QImage QImage::mirrored(bool horizontally, bool vertically) [static] new QImage newDescription: Constructor QImage::QImage() This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(const QSize size,const QImage_Format format)Description: Constructor QImage::QImage(const QSize &size, QImage::Format format) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(int width,int height,const QImage_Format format)Description: Constructor QImage::QImage(int width, int height, QImage::Format format) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(string data,int width,int height,const QImage_Format format)Description: Constructor QImage::QImage(const unsigned char *data, int width, int height, QImage::Format format) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(string data,int width,int height,int bytesPerLine,const QImage_Format format)Description: Constructor QImage::QImage(const unsigned char *data, int width, int height, int bytesPerLine, QImage::Format format) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(string fileName,string format = 0)Description: Constructor QImage::QImage(const QString &fileName, const char *format) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [static] new QImage new(const QImage arg1)Description: Constructor QImage::QImage(const QImage &) This method creates an object of class QImage. Python specific notes:This method is the default initializer of the object [const] int numBytesDescription: Method int QImage::numBytes() [const] int numColorsDescription: Method int QImage::numColors() Python specific notes:The object exposes a readable attribute 'numColors'. This is the getter. void numColors=(int arg1)Description: Method void QImage::setNumColors(int) Python specific notes:The object exposes a writable attribute 'numColors'. This is the setter. [const] QPoint offsetDescription: Method QPoint QImage::offset() Python specific notes:The object exposes a readable attribute 'offset'. This is the getter. void offset=(const QPoint arg1)Description: Method void QImage::setOffset(const QPoint &) Python specific notes:The object exposes a writable attribute 'offset'. This is the setter. [virtual,const] QPaintEngine ptr paintEngineDescription: Virtual method QPaintEngine *QImage::paintEngine() This method can be reimplemented in a derived class. [const] unsigned int pixel(int x,int y)Description: Method unsigned int QImage::pixel(int x, int y) [const] unsigned int pixel(const QPoint pt)Description: Method unsigned int QImage::pixel(const QPoint &pt) [const] int pixelIndex(int x,int y)Description: Method int QImage::pixelIndex(int x, int y) [const] int pixelIndex(const QPoint pt)Description: Method int QImage::pixelIndex(const QPoint &pt) [const] QRect rectDescription: Method QRect QImage::rect() [const] QImage rgbSwappedDescription: Method QImage QImage::rgbSwapped() [const] bool save(string fileName,string format = 0,int quality = -1)Description: Method bool QImage::save(const QString &fileName, const char *format, int quality) [const] bool save(QIODevice ptr device,string format = 0,int quality = -1)Description: Method bool QImage::save(QIODevice *device, const char *format, int quality) [const] QImage scaled(int w,int h,const Qt_AspectRatioMode aspectMode = Qt::IgnoreAspectRatio,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::scaled(int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) [const] QImage scaled(const QSize s,const Qt_AspectRatioMode aspectMode = Qt::IgnoreAspectRatio,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::scaled(const QSize &s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) [const] QImage scaledToHeight(int h,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::scaledToHeight(int h, Qt::TransformationMode mode) [const] QImage scaledToWidth(int w,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::scaledToWidth(int w, Qt::TransformationMode mode) [const] string scanLine(int arg1)Description: Method const unsigned char *QImage::scanLine(int) [const] int serialNumberDescription: Method int QImage::serialNumber() void setAlphaChannel(const QImage alphaChannel)Description: Method void QImage::setAlphaChannel(const QImage &alphaChannel) Python specific notes:The object exposes a writable attribute 'alphaChannel'. This is the setter. void setColor(int i,unsigned int c)Description: Method void QImage::setColor(int i, unsigned int c) void setColorCount(int arg1)Description: Method void QImage::setColorCount(int) Python specific notes:The object exposes a writable attribute 'colorCount'. This is the setter. void setColorTable(unsigned int[] colors)Description: Method void QImage::setColorTable(const QVector<unsigned int> colors) Python specific notes:The object exposes a writable attribute 'colorTable'. This is the setter. void setDotsPerMeterX(int arg1)Description: Method void QImage::setDotsPerMeterX(int) Python specific notes:The object exposes a writable attribute 'dotsPerMeterX'. This is the setter. void setDotsPerMeterY(int arg1)Description: Method void QImage::setDotsPerMeterY(int) Python specific notes:The object exposes a writable attribute 'dotsPerMeterY'. This is the setter. void setNumColors(int arg1)Description: Method void QImage::setNumColors(int) Python specific notes:The object exposes a writable attribute 'numColors'. This is the setter. void setOffset(const QPoint arg1)Description: Method void QImage::setOffset(const QPoint &) Python specific notes:The object exposes a writable attribute 'offset'. This is the setter. void setPixel(int x,int y,unsigned int index_or_rgb)Description: Method void QImage::setPixel(int x, int y, unsigned int index_or_rgb) void setPixel(const QPoint pt,unsigned int index_or_rgb)Description: Method void QImage::setPixel(const QPoint &pt, unsigned int index_or_rgb) void setText(string key,string value)Description: Method void QImage::setText(const QString &key, const QString &value) void setText(string key,string lang,string arg3)Description: Method void QImage::setText(const char *key, const char *lang, const QString &) [const] QSize sizeDescription: Method QSize QImage::size() Python specific notes:This method is also available as 'len(object)' [const] string text(string key,string lang = 0)Description: Method QString QImage::text(const char *key, const char *lang) [const] string text(const QImageTextKeyLang arg1)Description: Method QString QImage::text(const QImageTextKeyLang &) [const] string[] textKeysDescription: Method QStringList QImage::textKeys() [const] string[] textLanguagesDescription: Method QStringList QImage::textLanguages() [const] QImageTextKeyLang[] textListDescription: Method QList<QImageTextKeyLang> QImage::textList() [const] QImage transformed(const QMatrix matrix,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::transformed(const QMatrix &matrix, Qt::TransformationMode mode) [const] QImage transformed(const QTransform matrix,const Qt_TransformationMode mode = Qt::FastTransformation)Description: Method QImage QImage::transformed(const QTransform &matrix, Qt::TransformationMode mode) [static] QMatrix trueMatrix(const QMatrix arg1,int w,int h)Description: Static method QMatrix QImage::trueMatrix(const QMatrix &, int w, int h) This method is static and can be called without an instance. [static] QTransform trueMatrix(const QTransform arg1,int w,int h)Description: Static method QTransform QImage::trueMatrix(const QTransform &, int w, int h) This method is static and can be called without an instance. [const] bool valid(int x,int y)Description: Method bool QImage::valid(int x, int y) [const] bool valid(const QPoint pt)Description: Method bool QImage::valid(const QPoint &pt) [const] int widthDescription: Method int QImage::width() |