Make blobing image data, you will get each shape with all the pixels and extents [RECT shapes]
If your image has a shape inside the shape, then the buildup will be processed as separate shapes.
If you need a code, send me an email, we will be happy to share it.
source
share