Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0, 5.9.0 Alpha, 5.9.0 Beta 1
-
None
-
Android, iOS
-
0043fab778f2497f644c434a194b5c5eec851819
Description
In a Canvas item, calling getImageData on the context2D javascript objet, doesn't return data independent of the screen's DPI.
It works if the app doesn't call QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
It also works in Qt 5.7 and below.
In 5.8 you have to call ctx.getImageData((mouse.x*Screen.pixelDensity/2 ...etc.
Reproducible easily on Android and iOS, not on my Windows because it's not high DPI but maybe on a high DPI windows...
Attachments
Issue Links
- relates to
-
QTBUG-37095 Canvas element renders fuzzy on retina displays
- Closed
For Gerrit Dashboard: QTBUG-59170 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
190104,4 | Fix QQuickCanvasItem::toImage() high-DPI capture | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |