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
I am working on a feature similar to Instagram Story editor, can add an image and draw on it.
I face the issue same as this one #741 (comment).
So I applied the suggestion in it, use Picture to create a single image.
Steps:
use createPicture function to create a picture that contains all the paths (and paint for style/stroke)
serialize the picture
use MakePicture function to create a single image.
With these steps performance is better.
But when I implementing eraser effect, I use the same method above and set blend mode clear for eraser path in step 1
During step 3 the MakePicture will return undefined
Is this a normal behaviour or not?
Any suggestions for this situation?
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a feature similar to Instagram Story editor, can add an image and draw on it.
I face the issue same as this one #741 (comment).
So I applied the suggestion in it, use Picture to create a single image.
Steps:
With these steps performance is better.
But when I implementing
eraser
effect, I use the same method above and set blend modeclear
for eraser path in step 1During step 3 the MakePicture will return
undefined
Is this a normal behaviour or not?
Any suggestions for this situation?
Beta Was this translation helpful? Give feedback.
All reactions