mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Added overzoom description
This commit is contained in:
parent
8261ee2e79
commit
ea98da4a74
11
README.md
11
README.md
@ -34,6 +34,17 @@ reader.read(&image);
|
|||||||
```
|
```
|
||||||
you will get 1024x1024px tiles with a pixel ratio of 2 (= HiDPI tiles).
|
you will get 1024x1024px tiles with a pixel ratio of 2 (= HiDPI tiles).
|
||||||
|
|
||||||
|
Since version 2.7 tile "overzoom" is supported. If you set *format* to
|
||||||
|
"$zoom;$overzoom":
|
||||||
|
```cpp
|
||||||
|
QPixmap pm;
|
||||||
|
pm.loadFromData(tileData, QByteArray::number(zoom) + ';' +
|
||||||
|
QByteArray::number(overzoom));
|
||||||
|
```
|
||||||
|
you will get (512<<overzoom)x(512<<overzoom)px tiles with a pixel ratio of 1.
|
||||||
|
When overzoom is combined with setScaledSize(), the base size is the overzoomed
|
||||||
|
tile size.
|
||||||
|
|
||||||
For a sample code see the [pbf2png](https://github.com/tumic0/pbf2png)
|
For a sample code see the [pbf2png](https://github.com/tumic0/pbf2png)
|
||||||
conversion utility.
|
conversion utility.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user