Offscreen Canvas Draw Image with specified width and height #1803
Unanswered
awaissahmed80
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to draw an image on Offscreen canvas
const offscreen = Skia.Surface.MakeOffscreen(1000, 1000); const canvas = offscreen.getCanvas(); canvas2.drawImage(image, 0, 0) // x and y
I want to specify width and height along with left and top position while drawing image on canvas.
Thanks,
Awais
Beta Was this translation helpful? Give feedback.
All reactions