Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QImageData Struct Reference

#include <qimage_p.h>

Collaboration diagram for QImageData:

Classes

struct  ImageSizeParameters

Public Member Functions

 QImageData ()
 ~QImageData ()
bool checkForAlphaPixels () const
bool convertInPlace (QImage::Format newFormat, Qt::ImageConversionFlags)
bool doImageIO (const QImage *image, QImageWriter *io, int quality) const

Static Public Member Functions

static QImageDatacreate (const QSize &size, QImage::Format format)
static QImageDatacreate (uchar *data, int w, int h, qsizetype bpl, QImage::Format format, bool readOnly, QImageCleanupFunction cleanupFunction=nullptr, void *cleanupInfo=nullptr)
static QImageDataget (QImage &img) noexcept
static const QImageDataget (const QImage &img) noexcept
static ImageSizeParameters calculateImageParameters (qsizetype width, qsizetype height, qsizetype depth)

Public Attributes

QAtomicInt ref
int width
int height
int depth
qsizetype nbytes
qreal devicePixelRatio
QList< QRgbcolortable
uchardata
QImage::Format format
qsizetype bytes_per_line
int ser_no
int detach_no
qreal dpmx
qreal dpmy
QPoint offset
uint own_data: 1
uint ro_data: 1
uint has_alpha_clut: 1
uint is_cached: 1
QImageCleanupFunction cleanupFunction
voidcleanupInfo
QMap< QString, QStringtext
QPaintEnginepaintEngine
QColorSpace colorSpace

Detailed Description

Definition at line 34 of file qimage_p.h.

Constructor & Destructor Documentation

◆ QImageData()

QImageData::QImageData ( )

Definition at line 93 of file qimage.cpp.

◆ ~QImageData()

QImageData::~QImageData ( )

Definition at line 158 of file qimage.cpp.

Member Function Documentation

◆ calculateImageParameters()

QImageData::ImageSizeParameters QImageData::calculateImageParameters ( qsizetype width,
qsizetype height,
qsizetype depth )
inlinestatic

Definition at line 92 of file qimage_p.h.

◆ checkForAlphaPixels()

bool QImageData::checkForAlphaPixels ( ) const

Definition at line 174 of file qimage.cpp.

◆ convertInPlace()

bool QImageData::convertInPlace ( QImage::Format newFormat,
Qt::ImageConversionFlags flags )

Definition at line 5937 of file qimage.cpp.

◆ create() [1/2]

QImageData * QImageData::create ( const QSize & size,
QImage::Format format )
static

Creates a new image data. Returns \nullptr if invalid parameters are give or anything else failed.

◆ create() [2/2]

QImageData * QImageData::create ( uchar * data,
int w,
int h,
qsizetype bpl,
QImage::Format format,
bool readOnly,
QImageCleanupFunction cleanupFunction = nullptr,
void * cleanupInfo = nullptr )
static

Definition at line 832 of file qimage.cpp.

◆ doImageIO()

bool QImageData::doImageIO ( const QImage * image,
QImageWriter * io,
int quality ) const

Definition at line 3977 of file qimage.cpp.

◆ get() [1/2]

const QImageData * QImageData::get ( const QImage & img)
inlinestaticnoexcept

Definition at line 41 of file qimage_p.h.

◆ get() [2/2]

QImageData * QImageData::get ( QImage & img)
inlinestaticnoexcept

Definition at line 40 of file qimage_p.h.

Member Data Documentation

◆ bytes_per_line

qsizetype QImageData::bytes_per_line

Definition at line 53 of file qimage_p.h.

◆ cleanupFunction

QImageCleanupFunction QImageData::cleanupFunction

Definition at line 66 of file qimage_p.h.

◆ cleanupInfo

void* QImageData::cleanupInfo

Definition at line 67 of file qimage_p.h.

◆ colorSpace

QColorSpace QImageData::colorSpace

Definition at line 81 of file qimage_p.h.

◆ colortable

QList<QRgb> QImageData::colortable

Definition at line 50 of file qimage_p.h.

◆ data

uchar* QImageData::data

Definition at line 51 of file qimage_p.h.

◆ depth

int QImageData::depth

Definition at line 47 of file qimage_p.h.

◆ detach_no

int QImageData::detach_no

Definition at line 55 of file qimage_p.h.

◆ devicePixelRatio

qreal QImageData::devicePixelRatio

Definition at line 49 of file qimage_p.h.

◆ dpmx

qreal QImageData::dpmx

Definition at line 57 of file qimage_p.h.

◆ dpmy

qreal QImageData::dpmy

Definition at line 58 of file qimage_p.h.

◆ format

QImage::Format QImageData::format

Definition at line 52 of file qimage_p.h.

◆ has_alpha_clut

uint QImageData::has_alpha_clut

Definition at line 63 of file qimage_p.h.

◆ height

int QImageData::height

Definition at line 46 of file qimage_p.h.

◆ is_cached

uint QImageData::is_cached

Definition at line 64 of file qimage_p.h.

◆ nbytes

qsizetype QImageData::nbytes

Definition at line 48 of file qimage_p.h.

◆ offset

◆ own_data

uint QImageData::own_data

Definition at line 61 of file qimage_p.h.

◆ paintEngine

QPaintEngine* QImageData::paintEngine

Definition at line 79 of file qimage_p.h.

◆ ref

QAtomicInt QImageData::ref

Definition at line 43 of file qimage_p.h.

◆ ro_data

uint QImageData::ro_data

Definition at line 62 of file qimage_p.h.

◆ ser_no

int QImageData::ser_no

Definition at line 54 of file qimage_p.h.

◆ text

QMap<QString, QString> QImageData::text

Definition at line 75 of file qimage_p.h.

◆ width

int QImageData::width

Definition at line 45 of file qimage_p.h.


The documentation for this struct was generated from the following files: