Canvas drawPath is off
<p>I have been trying to fill the polygon I am drawing in a Goole Map but
I can't get it right.  In my code below, when I just use drawPaint, it draws in the right location but when I use drawPath, It is painting the bitmap in different locations.</p>

<pre><code>Bitmap fillBMP = PatternGenerator.makePattern(PatternGenerator.PATTERN_STYLE_X, lineColor);
BitmapShader fillBMPshader = new BitmapShader(fillBMP, BitmapShader.TileMode.REPEAT, BitmapShader.TileMode.REPEAT);
Paint paintshader = new Paint();
paintshader.setAntiAlias(true);
paintshader.setShader(fillBMPshader);

android.graphics.Point r1 = projection.toScreenLocation(mLatLngBounds.northeast);
android.graphics.Point r2 = projection.toScreenLocation(mLatLngBounds.southwest);

int width = Math.abs(Math.abs(r1.x) - Math.abs(r2.x));
int height = Math.abs(Math.abs(r2.y) - Math.abs(r1.y)); //Math.abs(r2.y - r1.y);


Bitmap bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bm);
Paint p = new Paint();
p.setColor(Color.YELLOW);
//canvas.drawPaint(p);     // This works
canvas.drawPath(path, paintshader);  // This does not work.


GroundOverlay overlay = map.addGroundOverlay(new GroundOverlayOptions()
      .anchor(0f, 0f)
      .image(BitmapDescriptorFactory.fromBitmap(bm))
      .transparency(0.3f)
      .positionFromBounds(mLatLngBounds));
</code></pre>

<p>The Path I created is a series of points.</p>

<pre><code>-23.725012,137.285156
-24.527135,145.371094
-29.382175,145.898438
-29.993002,138.691406
-23.725012,137.285156

int nPoints = mOuter.mCoordinates.size();

android.graphics.Point pos0 = projection.toScreenLocation(mOuter.mCoordinates.get(0));
path.moveTo(pos0.x, pos0.y);

for ( int i = 1; i &lt; nPoints; i++)
{
  builder.include(mOuter.mCoordinates.get(i));

  android.graphics.Point pos = projection.toScreenLocation(mOuter.mCoordinates.get(i));
  path.lineTo(pos.x, pos.y);

}

path.close();
</code></pre>

<p>I used moveTo then lineTo and close the path.</p>

<p>Is there something that I am missing here?</p>