Thanks, it worked!

On 8 Okt, 17:53, Romain Guy <[email protected]> wrote:
> That is not how drawVertices() works. drawVertices() only fills with
> shaders. If you want to draw an arbitrary shape, just use a Path
> instead.
>
>
>
>
>
> On Fri, Oct 8, 2010 at 12:35 AM, MobileVisuals <[email protected]> 
> wrote:
> > I can draw polygons with canvas.drawVertices, but I can notfillthem.
> > I have set Paint.Style.FILLon the paint object,but thepolygon
> > doesn't get filled. Why doesn't thepolygonget filled? This is my
> > code:
>
> > mLinePaint2 = new Paint();
> > mLinePaint2.setARGB(255, 255, 0, 0);
> > mLinePaint2.setStyle(Paint.Style.FILL);
>
> > canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts,
> > 0, null, 0, null, 0, null, 0, 0, mLinePaint2);
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them- Dölj citerad text -
>
> - Visa citerad text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to