Updated scaling sample to fit v2.0

This commit is contained in:
Martin Tůma 2019-10-05 18:49:34 +02:00 committed by GitHub
parent 0916d6330c
commit ec6302d524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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