Thank you for your interest in the Aspose.GIS product!
In the general case, our library processes figures located in continuous space. But for working with pixels, you can create a grid. And use the “intersection” function between the grid and the geometry (see the code below). In your case, this is a polygon. The intersection of two geometries with a large number of points is a time-consuming task, please check the performance with your data.
// Create Polygon with Hole
Polygon polygon = new Polygon();
LinearRing ring = new LinearRing();
LinearRing hole = new LinearRing();
polygon.ExteriorRing = ring;
// Emulate Pixel Field
var pixels = new GeometryCollection();
for (int x = 0; x < 100; x++)
for (int y = 0; y < 100; y++)
pixels.Add(new Point(x + 0.5, y + 0.5));
// polygon content in “pixels”
var subPixels = polygon.Intersection(pixels);
More examples for working with geometry: https://docs.aspose.com/display/gisnet/Working+with+Geometries#WorkingwithGeometries-CreatePolygon
Hope this helps. Thanks.