QImage

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@QMetaType.Type.QImage
@Q_MOVABLE_TYPE
struct QImage {}

Constructors

this
this()
Undocumented in source.
this
this(const(QSize) size, Format format)
Undocumented in source.
this
this(int width, int height, Format format)
Undocumented in source.
this
this(uchar* data, int width, int height, Format format, QImageCleanupFunction cleanupFunction, void* cleanupInfo)
Undocumented in source.
this
this(const(uchar)* data, int width, int height, Format format, QImageCleanupFunction cleanupFunction, void* cleanupInfo)
Undocumented in source.
this
this(uchar* data, int width, int height, int bytesPerLine, Format format, QImageCleanupFunction cleanupFunction, void* cleanupInfo)
Undocumented in source.
this
this(const(uchar)* data, int width, int height, int bytesPerLine, Format format, QImageCleanupFunction cleanupFunction, void* cleanupInfo)
Undocumented in source.
this
this(const(char)** xpm)
Undocumented in source.
this
this(const(QString) fileName, const(char)* format)
Undocumented in source.
this
this(const(QImage) )
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

DataPtr
alias DataPtr = QImageData*
Undocumented in source.

Enums

Format
enum Format
Undocumented in source.
InvertMode
enum InvertMode
Undocumented in source.

Functions

allGray
bool allGray()
Undocumented in source.
alphaChannel
QImage alphaChannel()
Undocumented in source.
applyColorTransform
void applyColorTransform(const(QColorTransform) transform)
Undocumented in source.
bitPlaneCount
int bitPlaneCount()
Undocumented in source.
bits
uchar* bits()
Undocumented in source.
bits
const(uchar)* bits()
Undocumented in source.
byteCount
int byteCount()
Undocumented in source.
bytesPerLine
int bytesPerLine()
Undocumented in source.
cacheKey
qint64 cacheKey()
Undocumented in source.
color
QRgb color(int i)
Undocumented in source.
colorCount
int colorCount()
Undocumented in source.
colorSpace
QColorSpace colorSpace()
Undocumented in source.
colorTable
QVector!(QRgb) colorTable()
Undocumented in source.
constBits
const(uchar)* constBits()
Undocumented in source.
constScanLine
const(uchar)* constScanLine(int )
Undocumented in source.
convertTo
void convertTo(Format f, qt.core.namespace.ImageConversionFlags flags)
Undocumented in source.
convertToColorSpace
void convertToColorSpace(const(QColorSpace) )
Undocumented in source.
convertToFormat
QImage convertToFormat(Format f, const(QVector!(QRgb)) colorTable, qt.core.namespace.ImageConversionFlags flags)
Undocumented in source.
convertToFormat_helper
QImage convertToFormat_helper(Format format, qt.core.namespace.ImageConversionFlags flags)
Undocumented in source.
convertToFormat_inplace
bool convertToFormat_inplace(Format format, qt.core.namespace.ImageConversionFlags flags)
Undocumented in source.
convertedToColorSpace
QImage convertedToColorSpace(const(QColorSpace) )
Undocumented in source.
createAlphaMask
QImage createAlphaMask(qt.core.namespace.ImageConversionFlags flags)
Undocumented in source.
createHeuristicMask
QImage createHeuristicMask(bool clipTight)
Undocumented in source.
createMaskFromColor
QImage createMaskFromColor(QRgb color, qt.core.namespace.MaskMode mode)
Undocumented in source.
data_ptr
DataPtr data_ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
depth
int depth()
Undocumented in source.
detach
void detach()
Undocumented in source.
devType
int devType()
Undocumented in source.
devicePixelRatio
qreal devicePixelRatio()
Undocumented in source.
dotsPerMeterX
int dotsPerMeterX()
Undocumented in source.
dotsPerMeterY
int dotsPerMeterY()
Undocumented in source.
fill
void fill(uint pixel)
Undocumented in source.
fill
void fill(const(QColor) color)
Undocumented in source.
fill
void fill(qt.core.namespace.GlobalColor color)
Undocumented in source.
format
Format format()
Undocumented in source.
hasAlphaChannel
bool hasAlphaChannel()
Undocumented in source.
height
int height()
Undocumented in source.
invertPixels
void invertPixels(InvertMode )
Undocumented in source.
isDetached
bool isDetached()
Undocumented in source.
isGrayscale
bool isGrayscale()
Undocumented in source.
isNull
bool isNull()
Undocumented in source.
load
bool load(QIODevice device, const(char)* format)
Undocumented in source.
load
bool load(const(QString) fileName, const(char)* format)
Undocumented in source.
loadFromData
bool loadFromData(const(uchar)* buf, int len, const(char)* format)
Undocumented in source.
loadFromData
bool loadFromData(const(QByteArray) data, const(char)* aformat)
Undocumented in source. Be warned that the author may not have intended to support it.
metric
int metric(PaintDeviceMetric metric)
Undocumented in source.
mirrored
QImage mirrored(bool horizontally, bool vertically)
Undocumented in source. Be warned that the author may not have intended to support it.
mirrored
QImage mirrored(bool horizontally, bool vertically)
Undocumented in source.
mirrored_helper
QImage mirrored_helper(bool horizontal, bool vertical)
Undocumented in source.
mirrored_inplace
void mirrored_inplace(bool horizontal, bool vertical)
Undocumented in source.
offset
QPoint offset()
Undocumented in source.
paintDevice
QPaintDevice paintDevice()
Undocumented in source. Be warned that the author may not have intended to support it.
paintEngine
QPaintEngine paintEngine()
Undocumented in source.
pixel
QRgb pixel(int x, int y)
Undocumented in source.
pixel
QRgb pixel(const(QPoint) pt)
Undocumented in source. Be warned that the author may not have intended to support it.
pixelColor
QColor pixelColor(int x, int y)
Undocumented in source.
pixelColor
QColor pixelColor(const(QPoint) pt)
Undocumented in source. Be warned that the author may not have intended to support it.
pixelFormat
QPixelFormat pixelFormat()
Undocumented in source.
pixelIndex
int pixelIndex(int x, int y)
Undocumented in source.
pixelIndex
int pixelIndex(const(QPoint) pt)
Undocumented in source. Be warned that the author may not have intended to support it.
rawConstructor
typeof(this) rawConstructor()
Undocumented in source.
rect
QRect rect()
Undocumented in source.
reinterpretAsFormat
bool reinterpretAsFormat(Format f)
Undocumented in source.
rgbSwapped
QImage rgbSwapped()
Undocumented in source. Be warned that the author may not have intended to support it.
rgbSwapped
QImage rgbSwapped()
Undocumented in source.
rgbSwapped_helper
QImage rgbSwapped_helper()
Undocumented in source.
rgbSwapped_inplace
void rgbSwapped_inplace()
Undocumented in source.
save
bool save(const(QString) fileName, const(char)* format, int quality)
Undocumented in source.
save
bool save(QIODevice device, const(char)* format, int quality)
Undocumented in source.
scaled
QImage scaled(int w, int h, qt.core.namespace.AspectRatioMode aspectMode, qt.core.namespace.TransformationMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
scaled
QImage scaled(const(QSize) s, qt.core.namespace.AspectRatioMode aspectMode, qt.core.namespace.TransformationMode mode)
Undocumented in source.
scaledToHeight
QImage scaledToHeight(int h, qt.core.namespace.TransformationMode mode)
Undocumented in source.
scaledToWidth
QImage scaledToWidth(int w, qt.core.namespace.TransformationMode mode)
Undocumented in source.
scanLine
uchar* scanLine(int )
Undocumented in source.
scanLine
const(uchar)* scanLine(int )
Undocumented in source.
setAlphaChannel
void setAlphaChannel(const(QImage) alphaChannel)
Undocumented in source.
setColor
void setColor(int i, QRgb c)
Undocumented in source.
setColorCount
void setColorCount(int )
Undocumented in source.
setColorSpace
void setColorSpace(const(QColorSpace) )
Undocumented in source.
setColorTable
void setColorTable(const(QVector!(QRgb)) colors)
Undocumented in source.
setDevicePixelRatio
void setDevicePixelRatio(qreal scaleFactor)
Undocumented in source.
setDotsPerMeterX
void setDotsPerMeterX(int )
Undocumented in source.
setDotsPerMeterY
void setDotsPerMeterY(int )
Undocumented in source.
setOffset
void setOffset(const(QPoint) )
Undocumented in source.
setPixel
void setPixel(int x, int y, uint index_or_rgb)
Undocumented in source.
setPixel
void setPixel(const(QPoint) pt, uint index_or_rgb)
Undocumented in source. Be warned that the author may not have intended to support it.
setPixelColor
void setPixelColor(int x, int y, const(QColor) c)
Undocumented in source.
setPixelColor
void setPixelColor(const(QPoint) pt, const(QColor) c)
Undocumented in source. Be warned that the author may not have intended to support it.
setText
void setText(const(QString) key, const(QString) value)
Undocumented in source.
size
QSize size()
Undocumented in source.
sizeInBytes
qsizetype sizeInBytes()
Undocumented in source.
smoothScaled
QImage smoothScaled(int w, int h)
Undocumented in source.
text
QString text(const(QString) key)
Undocumented in source.
textKeys
QStringList textKeys()
Undocumented in source.
transformed
QImage transformed(const(QMatrix) matrix, qt.core.namespace.TransformationMode mode)
Undocumented in source.
transformed
QImage transformed(const(QTransform) matrix, qt.core.namespace.TransformationMode mode)
Undocumented in source.
valid
bool valid(int x, int y)
Undocumented in source.
valid
bool valid(const(QPoint) pt)
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width()
Undocumented in source.

Static functions

create
typeof(this) create()
Undocumented in source. Be warned that the author may not have intended to support it.
fromData
QImage fromData(const(uchar)* data, int size, const(char)* format)
Undocumented in source.
fromData
QImage fromData(const(QByteArray) data, const(char)* format)
Undocumented in source. Be warned that the author may not have intended to support it.
toImageFormat
QImage.Format toImageFormat(QPixelFormat format)
Undocumented in source.
toPixelFormat
QPixelFormat toPixelFormat(QImage.Format format)
Undocumented in source.
trueMatrix
QMatrix trueMatrix(const(QMatrix) , int w, int h)
Undocumented in source.
trueMatrix
QTransform trueMatrix(const(QTransform) , int w, int h)
Undocumented in source.

Meta