MaLiang icon indicating copy to clipboard operation
MaLiang copied to clipboard

Get data of each elements of canvas

Open jeremythiriez opened this issue 4 years ago • 1 comments

Hello,

Is it possible to get data of each elements of the canvas or create an image of each elements independently ?

Thank you

jeremythiriez avatar Oct 21 '19 09:10 jeremythiriez

There's no designed api for this too. One possible way: Create a SnapshotTarget by yourself, and call the renderSelf(on:) method of the elements witch you want, then you can take a snapshot for the texture of this SnapshotTarget

Harley-xk avatar Oct 24 '19 00:10 Harley-xk