mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Example codes cleanup
This commit is contained in:
parent
b36fb5fa92
commit
38b6e2320b
@ -23,12 +23,12 @@ QPixmap::loadFromData() functions. The zoom number is passed as ASCII string
|
|||||||
to the functions:
|
to the functions:
|
||||||
```cpp
|
```cpp
|
||||||
QPixmap pm;
|
QPixmap pm;
|
||||||
pm.loadFromData(tileData, QString::number(zoom).toLatin1());
|
pm.loadFromData(tileData, QByteArray::number(zoom));
|
||||||
```
|
```
|
||||||
The plugin supports vector scaling using QImageReader's setScaledSize() method,
|
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, QByteArray::number(zoom));
|
||||||
reader.setScaledSize(QSize(1024, 1024));
|
reader.setScaledSize(QSize(1024, 1024));
|
||||||
reader.read(&image);
|
reader.read(&image);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user