You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there, I'm currently creating a copy of Telegram's image editor , more precisely the stickers part of the app, everything is working fine, however the only transformations missing from the canvas API are rotateX and rotateY transformations, currently I have something like this:
constoffscreen=Skia.Surface.MakeOffscreen(100,100);constcanvas=offscreen?.getCanvas();if(canvas!==undefined){canvas.save();canvas.rotate(90,50,50);// draw anything to the canvas in betweencanvas.restore();}}
In contrast to translate which accepts values for translateX and translateY, rotate expects a rotation angle and the origin of the transformation. Is is possible to rotate X and Y in any other way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there, I'm currently creating a copy of Telegram's image editor , more precisely the stickers part of the app, everything is working fine, however the only transformations missing from the canvas API are
rotateX
androtateY
transformations, currently I have something like this:In contrast to translate which accepts values for translateX and translateY, rotate expects a rotation angle and the origin of the transformation. Is is possible to rotate X and Y in any other way?
Beta Was this translation helpful? Give feedback.
All reactions