Go to the source code of this file.
◆ qSmoothScaleImage()
QImage qSmoothScaleImage |
( |
const QImage & |
img, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Definition at line 1000 of file qimagescale.cpp.
Referenced by smoothScaled().
1003 if (src.isNull() || dw <= 0 || dh <= 0)
1006 int w = src.
width();
1007 int h = src.height();
1013 buffer =
QImage(dw, dh, src.format());
1015 qWarning(
"QImage: out of memory, returning null");
1022 0, 0, 0, 0, dw, dh, dw, src.bytesPerLine() / 4);
1025 0, 0, 0, 0, dw, dh, dw, src.bytesPerLine() / 4);
QImageScaleInfo * qimageFreeScaleInfo(QImageScaleInfo *isi)
qt_qimageScaleFunc qt_qimageScaleArgb
bool isNull() const
Returns true if it is a null image, otherwise returns false.
qt_qimageScaleFunc qt_qimageScaleRgb
Q_CORE_EXPORT void qWarning(const char *,...)
The QImage class provides a hardware-independent image representation that allows direct access to th...
int width() const
Returns the width of the image.
QImageScaleInfo * qimageCalcScaleInfo(const QImage &img, int sw, int sh, int dw, int dh, char aa)
uchar * scanLine(int)
Returns a pointer to the pixel data at the scanline with index i.