Paper.js doesn't really have this, but what it does support is rasterizing any item into a Raster, from which you could then access the image data through its undocumented Raster#getImageData(rect) method, e.g.:
var group = new Group(
new Path.Circle({
center: [100, 100],
radius: 100,
fillColor: 'red'
}),
new Path.Rectangle({
topLeft: [100, 100],
bottomRight: [200, 200],
fillColor: 'blue'
})
);
var raster = group.rasterize();
var imageData = raster.getImageData();
Look at the source code of Raster.js and you'll see.
Jürg
> --
> You received this message because you are subscribed to the Google Groups "Paper.js" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
paperjs+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>