int ws = width();
int hs = height();
- // target image data
- int wd;
- int hd;
-
// compute size of target image
QTransform mat = trueMatrix(matrix, ws, hs);
return rotated180(*this);
}
+ // target image data
+ int wd;
+ int hd;
bool complex_xform = false;
if (mat.type() == QTransform::TxScale) {
if (mode == Qt::FastTransformation) {
if (wd == 0 || hd == 0)
return QImage();
- const int bpp = depth();
-
QImage::Format target_format = d->format;
if (complex_xform || mode == Qt::SmoothTransformation) {
dImage.d->dpmx = dotsPerMeterX();
dImage.d->dpmy = dotsPerMeterY();
+ const int bpp = depth();
switch (bpp) {
// initizialize the data
case 8: