Notation used in Ruby API documentation
Module: QtGui
Description: Binding of QImage
Class hierarchy: QImage » QPaintDevice
Sub-classes: Format, QFlags_Format, InvertMode, QFlags_InvertMode
new QImage ptr | new | (string data, int width, int height, int bytesPerLine, QImage_Format format) | QImage::QImage(const uchar *data, int width, int height, int bytesPerLine) |
new QImage ptr | new | (string data, int width, int height, QImage_Format format) | QImage::QImage(const uchar *data, int width, int height) |
new QImage | new | Constructor QImage::QImage() | |
new QImage | new | (const QSize size, const QImage_Format format) | Constructor QImage::QImage(const QSize &size, QImage::Format format) |
new QImage | new | (int width, int height, const QImage_Format format) | Constructor QImage::QImage(int width, int height, QImage::Format format) |
new QImage | new | (string fileName, string format = nullptr) | Constructor QImage::QImage(const QString &fileName, const char *format) |
new QImage | new | (const QImage arg1) | Constructor QImage::QImage(const QImage &) |
[const] | bool | != | (const QImage arg1) | Method bool QImage::operator!=(const QImage &) |
[const] | bool | == | (const QImage arg1) | Method bool QImage::operator==(const QImage &) |
void | _assign | (const QImage other) | Assigns another object to self | |
[const] | QImage ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | new QImage ptr | _dup | Creates a copy of self | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[const] | bool | allGray | Method bool QImage::allGray() | |
[const] | QImage | alphaChannel | Method QImage QImage::alphaChannel() | |
void | alphaChannel= | (const QImage alphaChannel) | Method void QImage::setAlphaChannel(const QImage &alphaChannel) | |
QImage | assign | (const QImage arg1) | Method QImage &QImage::operator=(const QImage &) | |
[const] | int | bitPlaneCount | Method int QImage::bitPlaneCount() | |
[const] | string | bits | Method const unsigned char *QImage::bits() | |
[const] | int | byteCount | Method int QImage::byteCount() | |
[const] | int | bytesPerLine | Method int QImage::bytesPerLine() | |
[const] | long long | cacheKey | Method qint64 QImage::cacheKey() | |
[const] | unsigned int | color | (int i) | Method unsigned int QImage::color(int i) |
[const] | int | colorCount | Method int QImage::colorCount() | |
void | colorCount= | (int arg1) | Method void QImage::setColorCount(int) | |
[const] | unsigned int[] | colorTable | Method QVector<QRgb> QImage::colorTable() | |
[const] | string | constBits | Method const unsigned char *QImage::constBits() | |
[const] | string | constScanLine | (int arg1) | Method const unsigned char *QImage::constScanLine(int) |
[const] | QImage | convertToFormat | (const QImage_Format f, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) | Method QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags) |
[const] | QImage | convertToFormat | (const QImage_Format f, unsigned int[] colorTable, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) | Method QImage QImage::convertToFormat(QImage::Format f, const QVector<QRgb> &colorTable, QFlags<Qt::ImageConversionFlag> flags) |
[const] | QImage | copy | (const QRect rect = QRect()) | Method QImage QImage::copy(const QRect &rect) |
[const] | QImage | copy | (int x, int y, int w, int h) | Method QImage QImage::copy(int x, int y, int w, int h) |
[const] | QImage | createAlphaMask | (Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) | Method QImage QImage::createAlphaMask(QFlags<Qt::ImageConversionFlag> flags) |
[const] | QImage | createHeuristicMask | (bool clipTight = true) | Method QImage QImage::createHeuristicMask(bool clipTight) |
[const] | QImage | createMaskFromColor | (unsigned int color, const Qt_MaskMode mode = Qt::MaskInColor) | Method QImage QImage::createMaskFromColor(unsigned int color, Qt::MaskMode mode) |
[const] | int | depth | Method int QImage::depth() | |
void | detach | Method void QImage::detach() | ||
[const] | double | devicePixelRatio | Method double QImage::devicePixelRatio() | |
void | devicePixelRatio= | (double scaleFactor) | Method void QImage::setDevicePixelRatio(double scaleFactor) | |
[const] | int | dotsPerMeterX | Method int QImage::dotsPerMeterX() | |
void | dotsPerMeterX= | (int arg1) | Method void QImage::setDotsPerMeterX(int) | |
[const] | int | dotsPerMeterY | Method int QImage::dotsPerMeterY() | |
void | dotsPerMeterY= | (int arg1) | Method void QImage::setDotsPerMeterY(int) | |
[const] | new QImage ptr | dup | Creates a copy of self | |
void | fill | (unsigned int pixel) | Method void QImage::fill(unsigned int pixel) | |
void | fill | (const QColor color) | Method void QImage::fill(const QColor &color) | |
void | fill | (const Qt_GlobalColor color) | Method void QImage::fill(Qt::GlobalColor color) | |
[const] | QImage_Format | format | Method QImage::Format QImage::format() | |
[const] | bool | hasAlphaChannel | Method bool QImage::hasAlphaChannel() | |
[const] | int | height | Method int QImage::height() | |
void | invertPixels | (const QImage_InvertMode arg1 = QImage::InvertRgb) | Method void QImage::invertPixels(QImage::InvertMode) | |
[const] | bool | isDetached? | Method bool QImage::isDetached() | |
[const] | bool | isGrayscale? | Method bool QImage::isGrayscale() | |
[const] | bool | isNull? | Method bool QImage::isNull() | |
bool | load | (QIODevice ptr device, string format) | Method bool QImage::load(QIODevice *device, const char *format) | |
bool | load | (string fileName, string format = nullptr) | Method bool QImage::load(const QString &fileName, const char *format) | |
bool | loadFromData | (string buf, int len, string format = nullptr) | Method bool QImage::loadFromData(const unsigned char *buf, int len, const char *format) | |
bool | loadFromData | (bytes data, string aformat = nullptr) | Method bool QImage::loadFromData(const QByteArray &data, const char *aformat) | |
[const] | QImage | mirrored | (bool horizontally = false, bool vertically = true) | Method QImage QImage::mirrored(bool horizontally, bool vertically) |
[const] | QPoint | offset | Method QPoint QImage::offset() | |
void | offset= | (const QPoint arg1) | Method void QImage::setOffset(const QPoint &) | |
[const] | QPaintEngine ptr | paintEngine | Virtual method QPaintEngine *QImage::paintEngine() | |
[const] | unsigned int | pixel | (int x, int y) | Method unsigned int QImage::pixel(int x, int y) |
[const] | unsigned int | pixel | (const QPoint pt) | Method unsigned int QImage::pixel(const QPoint &pt) |
[const] | QColor | pixelColor | (int x, int y) | Method QColor QImage::pixelColor(int x, int y) |
[const] | QColor | pixelColor | (const QPoint pt) | Method QColor QImage::pixelColor(const QPoint &pt) |
[const] | QPixelFormat | pixelFormat | Method QPixelFormat QImage::pixelFormat() | |
[const] | int | pixelIndex | (int x, int y) | Method int QImage::pixelIndex(int x, int y) |
[const] | int | pixelIndex | (const QPoint pt) | Method int QImage::pixelIndex(const QPoint &pt) |
[const] | QRect | rect | Method QRect QImage::rect() | |
bool | reinterpretAsFormat | (const QImage_Format f) | Method bool QImage::reinterpretAsFormat(QImage::Format f) | |
[const] | QImage | rgbSwapped | Method QImage QImage::rgbSwapped() | |
[const] | bool | save | (string fileName, string format = nullptr, int quality = -1) | Method bool QImage::save(const QString &fileName, const char *format, int quality) |
[const] | bool | save | (QIODevice ptr device, string format = nullptr, int quality = -1) | 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) | 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) | Method QImage QImage::scaled(const QSize &s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) |
[const] | QImage | scaledToHeight | (int h, const Qt_TransformationMode mode = Qt::FastTransformation) | Method QImage QImage::scaledToHeight(int h, Qt::TransformationMode mode) |
[const] | QImage | scaledToWidth | (int w, const Qt_TransformationMode mode = Qt::FastTransformation) | Method QImage QImage::scaledToWidth(int w, Qt::TransformationMode mode) |
[const] | string | scanLine | (int arg1) | Method const unsigned char *QImage::scanLine(int) |
void | setAlphaChannel | (const QImage alphaChannel) | Method void QImage::setAlphaChannel(const QImage &alphaChannel) | |
void | setColor | (int i, unsigned int c) | Method void QImage::setColor(int i, unsigned int c) | |
void | setColorCount | (int arg1) | Method void QImage::setColorCount(int) | |
void | setColorTable | ([] colors) | Method void QImage::setColorTable(const QVector<QRgb> colors) | |
void | setDevicePixelRatio | (double scaleFactor) | Method void QImage::setDevicePixelRatio(double scaleFactor) | |
void | setDotsPerMeterX | (int arg1) | Method void QImage::setDotsPerMeterX(int) | |
void | setDotsPerMeterY | (int arg1) | Method void QImage::setDotsPerMeterY(int) | |
void | setOffset | (const QPoint arg1) | Method void QImage::setOffset(const QPoint &) | |
void | setPixel | (int x, int y, unsigned int index_or_rgb) | Method void QImage::setPixel(int x, int y, unsigned int index_or_rgb) | |
void | setPixel | (const QPoint pt, unsigned int index_or_rgb) | Method void QImage::setPixel(const QPoint &pt, unsigned int index_or_rgb) | |
void | setPixelColor | (int x, int y, const QColor c) | Method void QImage::setPixelColor(int x, int y, const QColor &c) | |
void | setPixelColor | (const QPoint pt, const QColor c) | Method void QImage::setPixelColor(const QPoint &pt, const QColor &c) | |
void | setText | (string key, string value) | Method void QImage::setText(const QString &key, const QString &value) | |
[const] | QSize | size | Method QSize QImage::size() | |
[const] | long long | sizeInBytes | Method qsizetype QImage::sizeInBytes() | |
void | swap | (QImage other) | Method void QImage::swap(QImage &other) | |
[const] | string[] | textKeys | Method QStringList QImage::textKeys() | |
[const] | QImage | transformed | (const QMatrix matrix, const Qt_TransformationMode mode = Qt::FastTransformation) | Method QImage QImage::transformed(const QMatrix &matrix, Qt::TransformationMode mode) |
[const] | QImage | transformed | (const QTransform matrix, const Qt_TransformationMode mode = Qt::FastTransformation) | Method QImage QImage::transformed(const QTransform &matrix, Qt::TransformationMode mode) |
[const] | bool | valid | (int x, int y) | Method bool QImage::valid(int x, int y) |
[const] | bool | valid | (const QPoint pt) | Method bool QImage::valid(const QPoint &pt) |
[const] | int | width | Method int QImage::width() |
[static,const] | QImage_Format | Format_A2BGR30_Premultiplied | Enum constant QImage::Format_A2BGR30_Premultiplied | |
[static,const] | QImage_Format | Format_A2RGB30_Premultiplied | Enum constant QImage::Format_A2RGB30_Premultiplied | |
[static,const] | QImage_Format | Format_ARGB32 | Enum constant QImage::Format_ARGB32 | |
[static,const] | QImage_Format | Format_ARGB32_Premultiplied | Enum constant QImage::Format_ARGB32_Premultiplied | |
[static,const] | QImage_Format | Format_ARGB4444_Premultiplied | Enum constant QImage::Format_ARGB4444_Premultiplied | |
[static,const] | QImage_Format | Format_ARGB6666_Premultiplied | Enum constant QImage::Format_ARGB6666_Premultiplied | |
[static,const] | QImage_Format | Format_ARGB8555_Premultiplied | Enum constant QImage::Format_ARGB8555_Premultiplied | |
[static,const] | QImage_Format | Format_ARGB8565_Premultiplied | Enum constant QImage::Format_ARGB8565_Premultiplied | |
[static,const] | QImage_Format | Format_Alpha8 | Enum constant QImage::Format_Alpha8 | |
[static,const] | QImage_Format | Format_BGR30 | Enum constant QImage::Format_BGR30 | |
[static,const] | QImage_Format | Format_Grayscale8 | Enum constant QImage::Format_Grayscale8 | |
[static,const] | QImage_Format | Format_Indexed8 | Enum constant QImage::Format_Indexed8 | |
[static,const] | QImage_Format | Format_Invalid | Enum constant QImage::Format_Invalid | |
[static,const] | QImage_Format | Format_Mono | Enum constant QImage::Format_Mono | |
[static,const] | QImage_Format | Format_MonoLSB | Enum constant QImage::Format_MonoLSB | |
[static,const] | QImage_Format | Format_RGB16 | Enum constant QImage::Format_RGB16 | |
[static,const] | QImage_Format | Format_RGB30 | Enum constant QImage::Format_RGB30 | |
[static,const] | QImage_Format | Format_RGB32 | Enum constant QImage::Format_RGB32 | |
[static,const] | QImage_Format | Format_RGB444 | Enum constant QImage::Format_RGB444 | |
[static,const] | QImage_Format | Format_RGB555 | Enum constant QImage::Format_RGB555 | |
[static,const] | QImage_Format | Format_RGB666 | Enum constant QImage::Format_RGB666 | |
[static,const] | QImage_Format | Format_RGB888 | Enum constant QImage::Format_RGB888 | |
[static,const] | QImage_Format | Format_RGBA64 | Enum constant QImage::Format_RGBA64 | |
[static,const] | QImage_Format | Format_RGBA64_Premultiplied | Enum constant QImage::Format_RGBA64_Premultiplied | |
[static,const] | QImage_Format | Format_RGBA8888 | Enum constant QImage::Format_RGBA8888 | |
[static,const] | QImage_Format | Format_RGBA8888_Premultiplied | Enum constant QImage::Format_RGBA8888_Premultiplied | |
[static,const] | QImage_Format | Format_RGBX64 | Enum constant QImage::Format_RGBX64 | |
[static,const] | QImage_Format | Format_RGBX8888 | Enum constant QImage::Format_RGBX8888 | |
[static,const] | QImage_InvertMode | InvertRgb | Enum constant QImage::InvertRgb | |
[static,const] | QImage_InvertMode | InvertRgba | Enum constant QImage::InvertRgba | |
[static,const] | QImage_Format | NImageFormats | Enum constant QImage::NImageFormats | |
QImage | fromData | (string data, int size, string format = nullptr) | Static method QImage QImage::fromData(const unsigned char *data, int size, const char *format) | |
QImage | fromData | (bytes data, string format = nullptr) | Static method QImage QImage::fromData(const QByteArray &data, const char *format) | |
QImage_Format | toImageFormat | (QPixelFormat format) | Static method QImage::Format QImage::toImageFormat(QPixelFormat format) | |
QPixelFormat | toPixelFormat | (const QImage_Format format) | Static method QPixelFormat QImage::toPixelFormat(QImage::Format format) | |
QMatrix | trueMatrix | (const QMatrix arg1, int w, int h) | Static method QMatrix QImage::trueMatrix(const QMatrix &, int w, int h) | |
QTransform | trueMatrix | (const QTransform arg1, int w, int h) | Static method QTransform QImage::trueMatrix(const QTransform &, int w, int h) |
[const] | QImage | convertToFormat_helper | (const QImage_Format format, Qt_QFlags_ImageConversionFlag flags) | Method QImage QImage::convertToFormat_helper(QImage::Format format, QFlags<Qt::ImageConversionFlag> flags) | |
bool | convertToFormat_inplace | (const QImage_Format format, Qt_QFlags_ImageConversionFlag flags) | Method bool QImage::convertToFormat_inplace(QImage::Format format, QFlags<Qt::ImageConversionFlag> flags) | ||
[const] | void | initPainter | (QPainter ptr painter) | Virtual method void QImage::initPainter(QPainter *painter) | |
[const] | int | metric | (const QPaintDevice_PaintDeviceMetric metric) | Virtual method int QImage::metric(QPaintDevice::PaintDeviceMetric metric) | |
[const] | QImage | mirrored_helper | (bool horizontal, bool vertical) | Method QImage QImage::mirrored_helper(bool horizontal, bool vertical) | |
void | mirrored_inplace | (bool horizontal, bool vertical) | Method void QImage::mirrored_inplace(bool horizontal, bool vertical) | ||
[const] | QPaintDevice ptr | redirected | (QPoint ptr offset) | Virtual method QPaintDevice *QImage::redirected(QPoint *offset) | |
[const] | QImage | rgbSwapped_helper | Method QImage QImage::rgbSwapped_helper() | ||
void | rgbSwapped_inplace | Method void QImage::rgbSwapped_inplace() | |||
[const] | QPainter ptr | sharedPainter | Virtual method QPainter *QImage::sharedPainter() | ||
[const] | QImage | smoothScaled | (int w, int h) | Method QImage QImage::smoothScaled(int w, int h) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
!= | Signature: [const] bool != (const QImage arg1) Description: Method bool QImage::operator!=(const QImage &) |
== | Signature: [const] bool == (const QImage arg1) Description: Method bool QImage::operator==(const QImage &) |
Format_A2BGR30_Premultiplied | Signature: [static,const] QImage_Format Format_A2BGR30_Premultiplied Description: Enum constant QImage::Format_A2BGR30_Premultiplied Python specific notes: |
Format_A2RGB30_Premultiplied | Signature: [static,const] QImage_Format Format_A2RGB30_Premultiplied Description: Enum constant QImage::Format_A2RGB30_Premultiplied Python specific notes: |
Format_ARGB32 | Signature: [static,const] QImage_Format Format_ARGB32 Description: Enum constant QImage::Format_ARGB32 Python specific notes: |
Format_ARGB32_Premultiplied | Signature: [static,const] QImage_Format Format_ARGB32_Premultiplied Description: Enum constant QImage::Format_ARGB32_Premultiplied Python specific notes: |
Format_ARGB4444_Premultiplied | Signature: [static,const] QImage_Format Format_ARGB4444_Premultiplied Description: Enum constant QImage::Format_ARGB4444_Premultiplied Python specific notes: |
Format_ARGB6666_Premultiplied | Signature: [static,const] QImage_Format Format_ARGB6666_Premultiplied Description: Enum constant QImage::Format_ARGB6666_Premultiplied Python specific notes: |
Format_ARGB8555_Premultiplied | Signature: [static,const] QImage_Format Format_ARGB8555_Premultiplied Description: Enum constant QImage::Format_ARGB8555_Premultiplied Python specific notes: |
Format_ARGB8565_Premultiplied | Signature: [static,const] QImage_Format Format_ARGB8565_Premultiplied Description: Enum constant QImage::Format_ARGB8565_Premultiplied Python specific notes: |
Format_Alpha8 | Signature: [static,const] QImage_Format Format_Alpha8 Description: Enum constant QImage::Format_Alpha8 Python specific notes: |
Format_BGR30 | Signature: [static,const] QImage_Format Format_BGR30 Description: Enum constant QImage::Format_BGR30 Python specific notes: |
Format_Grayscale8 | Signature: [static,const] QImage_Format Format_Grayscale8 Description: Enum constant QImage::Format_Grayscale8 Python specific notes: |
Format_Indexed8 | Signature: [static,const] QImage_Format Format_Indexed8 Description: Enum constant QImage::Format_Indexed8 Python specific notes: |
Format_Invalid | Signature: [static,const] QImage_Format Format_Invalid Description: Enum constant QImage::Format_Invalid Python specific notes: |
Format_Mono | Signature: [static,const] QImage_Format Format_Mono Description: Enum constant QImage::Format_Mono Python specific notes: |
Format_MonoLSB | Signature: [static,const] QImage_Format Format_MonoLSB Description: Enum constant QImage::Format_MonoLSB Python specific notes: |
Format_RGB16 | Signature: [static,const] QImage_Format Format_RGB16 Description: Enum constant QImage::Format_RGB16 Python specific notes: |
Format_RGB30 | Signature: [static,const] QImage_Format Format_RGB30 Description: Enum constant QImage::Format_RGB30 Python specific notes: |
Format_RGB32 | Signature: [static,const] QImage_Format Format_RGB32 Description: Enum constant QImage::Format_RGB32 Python specific notes: |
Format_RGB444 | Signature: [static,const] QImage_Format Format_RGB444 Description: Enum constant QImage::Format_RGB444 Python specific notes: |
Format_RGB555 | Signature: [static,const] QImage_Format Format_RGB555 Description: Enum constant QImage::Format_RGB555 Python specific notes: |
Format_RGB666 | Signature: [static,const] QImage_Format Format_RGB666 Description: Enum constant QImage::Format_RGB666 Python specific notes: |
Format_RGB888 | Signature: [static,const] QImage_Format Format_RGB888 Description: Enum constant QImage::Format_RGB888 Python specific notes: |
Format_RGBA64 | Signature: [static,const] QImage_Format Format_RGBA64 Description: Enum constant QImage::Format_RGBA64 Python specific notes: |
Format_RGBA64_Premultiplied | Signature: [static,const] QImage_Format Format_RGBA64_Premultiplied Description: Enum constant QImage::Format_RGBA64_Premultiplied Python specific notes: |
Format_RGBA8888 | Signature: [static,const] QImage_Format Format_RGBA8888 Description: Enum constant QImage::Format_RGBA8888 Python specific notes: |
Format_RGBA8888_Premultiplied | Signature: [static,const] QImage_Format Format_RGBA8888_Premultiplied Description: Enum constant QImage::Format_RGBA8888_Premultiplied Python specific notes: |
Format_RGBX64 | Signature: [static,const] QImage_Format Format_RGBX64 Description: Enum constant QImage::Format_RGBX64 Python specific notes: |
Format_RGBX8888 | Signature: [static,const] QImage_Format Format_RGBX8888 Description: Enum constant QImage::Format_RGBX8888 Python specific notes: |
InvertRgb | Signature: [static,const] QImage_InvertMode InvertRgb Description: Enum constant QImage::InvertRgb Python specific notes: |
InvertRgba | Signature: [static,const] QImage_InvertMode InvertRgba Description: Enum constant QImage::InvertRgba Python specific notes: |
NImageFormats | Signature: [static,const] QImage_Format NImageFormats Description: Enum constant QImage::NImageFormats Python specific notes: |
_assign | Signature: void _assign (const QImage other) Description: Assigns another object to self |
_const_cast | Signature: [const] QImage ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: 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. |
_destroy | Signature: void _destroy Description: 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. |
_destroyed? | Signature: [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. |
_dup | Signature: [const] new QImage ptr _dup Description: Creates a copy of self |
_is_const_object? | Signature: [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. |
_manage | Signature: void _manage Description: 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. |
_unmanage | Signature: void _unmanage Description: 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. |
allGray | Signature: [const] bool allGray Description: Method bool QImage::allGray() |
alphaChannel | Signature: [const] QImage alphaChannel Description: Method QImage QImage::alphaChannel() Python specific notes: |
alphaChannel= | Signature: void alphaChannel= (const QImage alphaChannel) Description: Method void QImage::setAlphaChannel(const QImage &alphaChannel) Python specific notes: |
assign | Signature: QImage assign (const QImage arg1) Description: Method QImage &QImage::operator=(const QImage &) |
bitPlaneCount | Signature: [const] int bitPlaneCount Description: Method int QImage::bitPlaneCount() |
bits | Signature: [const] string bits Description: Method const unsigned char *QImage::bits() |
byteCount | Signature: [const] int byteCount Description: Method int QImage::byteCount() |
bytesPerLine | Signature: [const] int bytesPerLine Description: Method int QImage::bytesPerLine() |
cacheKey | Signature: [const] long long cacheKey Description: Method qint64 QImage::cacheKey() |
color | Signature: [const] unsigned int color (int i) Description: Method unsigned int QImage::color(int i) |
colorCount | Signature: [const] int colorCount Description: Method int QImage::colorCount() Python specific notes: |
colorCount= | Signature: void colorCount= (int arg1) Description: Method void QImage::setColorCount(int) Python specific notes: |
colorTable | Signature: [const] unsigned int[] colorTable Description: Method QVector<QRgb> QImage::colorTable() |
constBits | Signature: [const] string constBits Description: Method const unsigned char *QImage::constBits() |
constScanLine | Signature: [const] string constScanLine (int arg1) Description: Method const unsigned char *QImage::constScanLine(int) |
convertToFormat | (1) Signature: [const] QImage convertToFormat (const QImage_Format f, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) Description: Method QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags) |
(2) Signature: [const] QImage convertToFormat (const QImage_Format f, unsigned int[] colorTable, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) Description: Method QImage QImage::convertToFormat(QImage::Format f, const QVector<QRgb> &colorTable, QFlags<Qt::ImageConversionFlag> flags) | |
convertToFormat_helper | Signature: [const] QImage convertToFormat_helper (const QImage_Format format, Qt_QFlags_ImageConversionFlag flags) Description: Method QImage QImage::convertToFormat_helper(QImage::Format format, QFlags<Qt::ImageConversionFlag> flags) This method is protected and can only be called from inside a derived class. |
convertToFormat_inplace | Signature: bool convertToFormat_inplace (const QImage_Format format, Qt_QFlags_ImageConversionFlag flags) Description: Method bool QImage::convertToFormat_inplace(QImage::Format format, QFlags<Qt::ImageConversionFlag> flags) This method is protected and can only be called from inside a derived class. |
copy | (1) Signature: [const] QImage copy (const QRect rect = QRect()) Description: Method QImage QImage::copy(const QRect &rect) |
(2) Signature: [const] QImage copy (int x, int y, int w, int h) Description: Method QImage QImage::copy(int x, int y, int w, int h) | |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead 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. |
createAlphaMask | Signature: [const] QImage createAlphaMask (Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor) Description: Method QImage QImage::createAlphaMask(QFlags<Qt::ImageConversionFlag> flags) |
createHeuristicMask | Signature: [const] QImage createHeuristicMask (bool clipTight = true) Description: Method QImage QImage::createHeuristicMask(bool clipTight) |
createMaskFromColor | Signature: [const] QImage createMaskFromColor (unsigned int color, const Qt_MaskMode mode = Qt::MaskInColor) Description: Method QImage QImage::createMaskFromColor(unsigned int color, Qt::MaskMode mode) |
depth | Signature: [const] int depth Description: Method int QImage::depth() |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead 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. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead 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. |
detach | Signature: void detach Description: Method void QImage::detach() |
devicePixelRatio | Signature: [const] double devicePixelRatio Description: Method double QImage::devicePixelRatio() Python specific notes: |
devicePixelRatio= | Signature: void devicePixelRatio= (double scaleFactor) Description: Method void QImage::setDevicePixelRatio(double scaleFactor) Python specific notes: |
dotsPerMeterX | Signature: [const] int dotsPerMeterX Description: Method int QImage::dotsPerMeterX() Python specific notes: |
dotsPerMeterX= | Signature: void dotsPerMeterX= (int arg1) Description: Method void QImage::setDotsPerMeterX(int) Python specific notes: |
dotsPerMeterY | Signature: [const] int dotsPerMeterY Description: Method int QImage::dotsPerMeterY() Python specific notes: |
dotsPerMeterY= | Signature: void dotsPerMeterY= (int arg1) Description: Method void QImage::setDotsPerMeterY(int) Python specific notes: |
dup | Signature: [const] new QImage ptr dup Description: Creates a copy of self Python specific notes: |
fill | (1) Signature: void fill (unsigned int pixel) Description: Method void QImage::fill(unsigned int pixel) |
(2) Signature: void fill (const QColor color) Description: Method void QImage::fill(const QColor &color) | |
(3) Signature: void fill (const Qt_GlobalColor color) Description: Method void QImage::fill(Qt::GlobalColor color) | |
format | Signature: [const] QImage_Format format Description: Method QImage::Format QImage::format() |
fromData | (1) Signature: [static] QImage fromData (string data, int size, string format = nullptr) 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. |
(2) Signature: [static] QImage fromData (bytes data, string format = nullptr) Description: Static method QImage QImage::fromData(const QByteArray &data, const char *format) This method is static and can be called without an instance. | |
hasAlphaChannel | Signature: [const] bool hasAlphaChannel Description: Method bool QImage::hasAlphaChannel() |
height | Signature: [const] int height Description: Method int QImage::height() |
initPainter | Signature: [const] void initPainter (QPainter ptr painter) Description: Virtual method void QImage::initPainter(QPainter *painter) This method can be reimplemented in a derived class. |
invertPixels | Signature: void invertPixels (const QImage_InvertMode arg1 = QImage::InvertRgb) Description: Method void QImage::invertPixels(QImage::InvertMode) |
isDetached? | Signature: [const] bool isDetached? Description: Method bool QImage::isDetached() |
isGrayscale? | Signature: [const] bool isGrayscale? Description: Method bool QImage::isGrayscale() |
isNull? | Signature: [const] bool isNull? Description: Method bool QImage::isNull() |
is_const_object? | Signature: [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 This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
load | (1) Signature: bool load (QIODevice ptr device, string format) Description: Method bool QImage::load(QIODevice *device, const char *format) |
(2) Signature: bool load (string fileName, string format = nullptr) Description: Method bool QImage::load(const QString &fileName, const char *format) | |
loadFromData | (1) Signature: bool loadFromData (string buf, int len, string format = nullptr) Description: Method bool QImage::loadFromData(const unsigned char *buf, int len, const char *format) |
(2) Signature: bool loadFromData (bytes data, string aformat = nullptr) Description: Method bool QImage::loadFromData(const QByteArray &data, const char *aformat) | |
metric | Signature: [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. |
mirrored | Signature: [const] QImage mirrored (bool horizontally = false, bool vertically = true) Description: Method QImage QImage::mirrored(bool horizontally, bool vertically) |
mirrored_helper | Signature: [const] QImage mirrored_helper (bool horizontal, bool vertical) Description: Method QImage QImage::mirrored_helper(bool horizontal, bool vertical) This method is protected and can only be called from inside a derived class. |
mirrored_inplace | Signature: void mirrored_inplace (bool horizontal, bool vertical) Description: Method void QImage::mirrored_inplace(bool horizontal, bool vertical) This method is protected and can only be called from inside a derived class. |
new | (1) Signature: [static] new QImage ptr new (string data, int width, int height, int bytesPerLine, QImage_Format format) Description: QImage::QImage(const uchar *data, int width, int height, int bytesPerLine) The cleanupFunction parameter is available currently. Python specific notes: |
(2) Signature: [static] new QImage ptr new (string data, int width, int height, QImage_Format format) Description: QImage::QImage(const uchar *data, int width, int height) The cleanupFunction parameter is available currently. Python specific notes: | |
(3) Signature: [static] new QImage new Description: Constructor QImage::QImage() This method creates an object of class QImage. Python specific notes: | |
(4) Signature: [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: | |
(5) Signature: [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: | |
(6) Signature: [static] new QImage new (string fileName, string format = nullptr) Description: Constructor QImage::QImage(const QString &fileName, const char *format) This method creates an object of class QImage. Python specific notes: | |
(7) Signature: [static] new QImage new (const QImage arg1) Description: Constructor QImage::QImage(const QImage &) This method creates an object of class QImage. Python specific notes: | |
offset | Signature: [const] QPoint offset Description: Method QPoint QImage::offset() Python specific notes: |
offset= | Signature: void offset= (const QPoint arg1) Description: Method void QImage::setOffset(const QPoint &) Python specific notes: |
paintEngine | Signature: [const] QPaintEngine ptr paintEngine Description: Virtual method QPaintEngine *QImage::paintEngine() This method can be reimplemented in a derived class. |
pixel | (1) Signature: [const] unsigned int pixel (int x, int y) Description: Method unsigned int QImage::pixel(int x, int y) |
(2) Signature: [const] unsigned int pixel (const QPoint pt) Description: Method unsigned int QImage::pixel(const QPoint &pt) | |
pixelColor | (1) Signature: [const] QColor pixelColor (int x, int y) Description: Method QColor QImage::pixelColor(int x, int y) |
(2) Signature: [const] QColor pixelColor (const QPoint pt) Description: Method QColor QImage::pixelColor(const QPoint &pt) | |
pixelFormat | Signature: [const] QPixelFormat pixelFormat Description: Method QPixelFormat QImage::pixelFormat() |
pixelIndex | (1) Signature: [const] int pixelIndex (int x, int y) Description: Method int QImage::pixelIndex(int x, int y) |
(2) Signature: [const] int pixelIndex (const QPoint pt) Description: Method int QImage::pixelIndex(const QPoint &pt) | |
rect | Signature: [const] QRect rect Description: Method QRect QImage::rect() |
redirected | Signature: [const] QPaintDevice ptr redirected (QPoint ptr offset) Description: Virtual method QPaintDevice *QImage::redirected(QPoint *offset) This method can be reimplemented in a derived class. |
reinterpretAsFormat | Signature: bool reinterpretAsFormat (const QImage_Format f) Description: Method bool QImage::reinterpretAsFormat(QImage::Format f) |
rgbSwapped | Signature: [const] QImage rgbSwapped Description: Method QImage QImage::rgbSwapped() |
rgbSwapped_helper | Signature: [const] QImage rgbSwapped_helper Description: Method QImage QImage::rgbSwapped_helper() This method is protected and can only be called from inside a derived class. |
rgbSwapped_inplace | Signature: void rgbSwapped_inplace Description: Method void QImage::rgbSwapped_inplace() This method is protected and can only be called from inside a derived class. |
save | (1) Signature: [const] bool save (string fileName, string format = nullptr, int quality = -1) Description: Method bool QImage::save(const QString &fileName, const char *format, int quality) |
(2) Signature: [const] bool save (QIODevice ptr device, string format = nullptr, int quality = -1) Description: Method bool QImage::save(QIODevice *device, const char *format, int quality) | |
scaled | (1) Signature: [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) |
(2) Signature: [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) | |
scaledToHeight | Signature: [const] QImage scaledToHeight (int h, const Qt_TransformationMode mode = Qt::FastTransformation) Description: Method QImage QImage::scaledToHeight(int h, Qt::TransformationMode mode) |
scaledToWidth | Signature: [const] QImage scaledToWidth (int w, const Qt_TransformationMode mode = Qt::FastTransformation) Description: Method QImage QImage::scaledToWidth(int w, Qt::TransformationMode mode) |
scanLine | Signature: [const] string scanLine (int arg1) Description: Method const unsigned char *QImage::scanLine(int) |
setAlphaChannel | Signature: void setAlphaChannel (const QImage alphaChannel) Description: Method void QImage::setAlphaChannel(const QImage &alphaChannel) Python specific notes: |
setColor | Signature: void setColor (int i, unsigned int c) Description: Method void QImage::setColor(int i, unsigned int c) |
setColorCount | Signature: void setColorCount (int arg1) Description: Method void QImage::setColorCount(int) Python specific notes: |
setColorTable | Signature: void setColorTable ([] colors) Description: Method void QImage::setColorTable(const QVector<QRgb> colors) |
setDevicePixelRatio | Signature: void setDevicePixelRatio (double scaleFactor) Description: Method void QImage::setDevicePixelRatio(double scaleFactor) Python specific notes: |
setDotsPerMeterX | Signature: void setDotsPerMeterX (int arg1) Description: Method void QImage::setDotsPerMeterX(int) Python specific notes: |
setDotsPerMeterY | Signature: void setDotsPerMeterY (int arg1) Description: Method void QImage::setDotsPerMeterY(int) Python specific notes: |
setOffset | Signature: void setOffset (const QPoint arg1) Description: Method void QImage::setOffset(const QPoint &) Python specific notes: |
setPixel | (1) Signature: 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) |
(2) Signature: void setPixel (const QPoint pt, unsigned int index_or_rgb) Description: Method void QImage::setPixel(const QPoint &pt, unsigned int index_or_rgb) | |
setPixelColor | (1) Signature: void setPixelColor (int x, int y, const QColor c) Description: Method void QImage::setPixelColor(int x, int y, const QColor &c) |
(2) Signature: void setPixelColor (const QPoint pt, const QColor c) Description: Method void QImage::setPixelColor(const QPoint &pt, const QColor &c) | |
setText | Signature: void setText (string key, string value) Description: Method void QImage::setText(const QString &key, const QString &value) |
sharedPainter | Signature: [const] QPainter ptr sharedPainter Description: Virtual method QPainter *QImage::sharedPainter() This method can be reimplemented in a derived class. |
size | Signature: [const] QSize size Description: Method QSize QImage::size() Python specific notes: |
sizeInBytes | Signature: [const] long long sizeInBytes Description: Method qsizetype QImage::sizeInBytes() |
smoothScaled | Signature: [const] QImage smoothScaled (int w, int h) Description: Method QImage QImage::smoothScaled(int w, int h) This method is protected and can only be called from inside a derived class. |
swap | Signature: void swap (QImage other) Description: Method void QImage::swap(QImage &other) |
textKeys | Signature: [const] string[] textKeys Description: Method QStringList QImage::textKeys() |
toImageFormat | Signature: [static] QImage_Format toImageFormat (QPixelFormat format) Description: Static method QImage::Format QImage::toImageFormat(QPixelFormat format) This method is static and can be called without an instance. |
toPixelFormat | Signature: [static] QPixelFormat toPixelFormat (const QImage_Format format) Description: Static method QPixelFormat QImage::toPixelFormat(QImage::Format format) This method is static and can be called without an instance. |
transformed | (1) Signature: [const] QImage transformed (const QMatrix matrix, const Qt_TransformationMode mode = Qt::FastTransformation) Description: Method QImage QImage::transformed(const QMatrix &matrix, Qt::TransformationMode mode) |
(2) Signature: [const] QImage transformed (const QTransform matrix, const Qt_TransformationMode mode = Qt::FastTransformation) Description: Method QImage QImage::transformed(const QTransform &matrix, Qt::TransformationMode mode) | |
trueMatrix | (1) Signature: [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. |
(2) Signature: [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. | |
valid | (1) Signature: [const] bool valid (int x, int y) Description: Method bool QImage::valid(int x, int y) |
(2) Signature: [const] bool valid (const QPoint pt) Description: Method bool QImage::valid(const QPoint &pt) | |
width | Signature: [const] int width Description: Method int QImage::width() |