Canvas element context putImageData issue
Unsolved
QML and Qt Quick
-
This code worked in Qt 5.3.2, but since I upgraded to Qt 5.5.1 it doesn't work anymore.
I'm guessing putImageData has changed but I can't find any examples of it's use.Any ideas?
Thanks@
Canvas{
width: 300
height: 300onPaint:{ var ctx = getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(10,10, 50, 50); var copy = ctx.getImageData(10,10,50,50); ctx.putImageData(copy, 20, 20); }
}
@
-
@cmessineo It seems it works using Qt5.6 on Ubuntu 14.04. It shows a red rectangle if thats is what you are expecting.