Hi,
Say I have an irregular raster object like this:
The app doesn’t know the shape or color of the object before runtime.
So I would like to achieve something like this:
I.e. cover the entire object with a grid, and mark only the squares that overlap the shape.
Making the grid etc. is not a problem, but I can’t find a way to detect the overlap.
A working solution would be to use display.colorSample and check for alpha>0 but as far as I understand this function can’t analyze objects out of context (will always ‘see’ the background as well).
Any help on this?
EDIT: Actually , if this is of any help, I think I can use a vector display polygon as the object.


