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
create an new path with some points on the raster that just create
create an new group that contains the raster and the path
set the group clipMask equlas to true
set the raster clipMask equals to true
then i got an new group that cliped an raster,but i dont know is there an way to export dataUrl of this raster
Additional information
// please ignore it,it just for get an newPathconstnewPath=path.subtract(origin)// set properties of the newPathnewPath.fillColor=newpaper.Color(255,0,0)newPath.fillColor.alpha=0.5newPath.selected=trueimage.crossOrigin='anonymous'// set raset clipMask equals to trueimage.clipMask=true// create an Groupconstgroup=newpaper.Group()// set group clipMaskgroup.clipMask=true// clip the rastergroup.addChild(newPath)group.addChild(image)group.selected=true....
// then how could i get the dataUrl of the raster that i just cliped?
The text was updated successfully, but these errors were encountered:
Description/Steps to reproduce
true
true
Additional information
The text was updated successfully, but these errors were encountered: