mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Updated scaling sample to fit v2.0
This commit is contained in:
parent
0916d6330c
commit
ec6302d524
@ -34,10 +34,10 @@ The plugin supports vector scaling using QImageReader's setScaledSize() method,
|
|||||||
so when used like in the following example:
|
so when used like in the following example:
|
||||||
```cpp
|
```cpp
|
||||||
QImageReader reader(file, QString::number(zoom).toLatin1());
|
QImageReader reader(file, QString::number(zoom).toLatin1());
|
||||||
reader.setScaledSize(QSize(512, 512));
|
reader.setScaledSize(QSize(1024, 1024));
|
||||||
reader.read(&image);
|
reader.read(&image);
|
||||||
```
|
```
|
||||||
you will get 512x512px tiles with a pixel ratio of 2 (= HiDPI tiles).
|
you will get 1024x1024px tiles with a pixel ratio of 2 (= HiDPI tiles).
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
### Requirements
|
### Requirements
|
||||||
|
Loading…
Reference in New Issue
Block a user