![]() |
Qt 6.x
The Qt SDK
|
Public Types | |
enum | DisposalMethod { Unspecified , NoDisposal , RestoreBackground , RestoreImage } |
Public Member Functions | |
QPNGImageWriter (QIODevice *) | |
~QPNGImageWriter () | |
void | setDisposalMethod (DisposalMethod) |
void | setLooping (int loops=0) |
void | setFrameDelay (int msecs) |
void | setGamma (float) |
bool | writeImage (const QImage &img, int x, int y) |
bool | writeImage (const QImage &img, int compression_in, const QString &description, int x, int y) |
bool | writeImage (const QImage &img) |
bool | writeImage (const QImage &img, int compression, const QString &description) |
QIODevice * | device () |
Definition at line 132 of file qpnghandler.cpp.
Enumerator | |
---|---|
Unspecified | |
NoDisposal | |
RestoreBackground | |
RestoreImage |
Definition at line 137 of file qpnghandler.cpp.
|
explicit |
Definition at line 752 of file qpnghandler.cpp.
QPNGImageWriter::~QPNGImageWriter | ( | ) |
Definition at line 762 of file qpnghandler.cpp.
|
inline |
Definition at line 150 of file qpnghandler.cpp.
Referenced by qpiw_write_fn().
void QPNGImageWriter::setDisposalMethod | ( | DisposalMethod | dm | ) |
Definition at line 766 of file qpnghandler.cpp.
void QPNGImageWriter::setFrameDelay | ( | int | msecs | ) |
Definition at line 776 of file qpnghandler.cpp.
void QPNGImageWriter::setGamma | ( | float | g | ) |
Definition at line 781 of file qpnghandler.cpp.
Referenced by write_png_image().
void QPNGImageWriter::setLooping | ( | int | loops = 0 | ) |
Definition at line 771 of file qpnghandler.cpp.
|
inline |
Definition at line 145 of file qpnghandler.cpp.
References writeImage().
|
inline |
Definition at line 147 of file qpnghandler.cpp.
References writeImage().
bool QPNGImageWriter::writeImage | ( | const QImage & | img, |
int | compression_in, | ||
const QString & | description, | ||
int | x, | ||
int | y | ||
) |
Definition at line 849 of file qpnghandler.cpp.
References QSysInfo::BigEndian, QSysInfo::ByteOrder, QByteArray::constData(), QByteArray::data(), QColorSpace::description(), fmt, QImage::Format_ARGB32, QImage::Format_BGR888, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB32, QImage::Format_RGB888, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBX64, QImage::Format_RGBX8888, QColorSpace::Gamma, QColorSpace::gamma(), i, QColorSpace::iccProfile(), QByteArray::isEmpty(), QSysInfo::LittleEndian, palette, qAlpha(), qBlue(), QByteArrayLiteral, qCWarning, qFuzzyCompare(), qGreen(), qMin(), qpiw_flush_fn(), qpiw_write_fn(), qRed(), QRgb, qt_png_warning(), set_text(), QByteArray::size(), QString::toLatin1(), Unspecified, and QColorSpace::withTransferFunction().
bool QPNGImageWriter::writeImage | ( | const QImage & | img, |
int | x, | ||
int | y | ||
) |
Definition at line 844 of file qpnghandler.cpp.
References writeImage().
Referenced by write_png_image(), writeImage(), writeImage(), and writeImage().