repaint();
}
public OMGraphic getPointIntersectionImage(OMGraphic omg) {
Shape s = omg.getShape();
Projection p = getProjection();
if (s != null && p != null && omg instanceof OMPoly) {
Rectangle r = s.getBounds();
double x = r.getX();
double y = r.getY();
double h = r.getHeight();
double w = r.getWidth();
float[] rawll = ((OMPoly) omg).getLatLonArray();
LatLonPoint llHolder = new LatLonPoint();
Geo g = new Geo(0, 0);
int[] pix = new int[(int) (h * w)];
for (double j = 0; j < h; j++) {
for (double i = 0; i < w; i++) {
boolean inShape = s.contains(i + x, j + y);
p.inverse((int) (i + x), (int) (j + y), llHolder);
g.initialize(llHolder.getLatitude(), llHolder.getLongitude());
boolean inGeo = Intersection.isPointInPolygon(g,
rawll,
false);