mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Use a faster QImage format
This commit is contained in:
parent
308bb59fc4
commit
14adb0925c
@ -70,7 +70,7 @@ bool PBFHandler::read(QImage *image)
|
|||||||
qreal scale = _scaledSize.isValid()
|
qreal scale = _scaledSize.isValid()
|
||||||
? qMax(_scaledSize.width() / TILE_SIZE, _scaledSize.height() / TILE_SIZE)
|
? qMax(_scaledSize.width() / TILE_SIZE, _scaledSize.height() / TILE_SIZE)
|
||||||
: 1.0;
|
: 1.0;
|
||||||
*image = QImage(size, QImage::Format_ARGB32);
|
*image = QImage(size, QImage::Format_ARGB32_Premultiplied);
|
||||||
|
|
||||||
return PBF::render(ba, ok ? zoom : -1, _style, scale, image);
|
return PBF::render(ba, ok ? zoom : -1, _style, scale, image);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user