Have you looked into the API demos? There are a couple of examples of lines with various patterns.
Peli www.openintents.org On Jul 17, 5:49 pm, karthikr <karthik.scintill...@gmail.com> wrote: > Hi Guys, > > How do i draw a dotted rectangle on a bitmape. > > Currently i use the following code, to draw a rectangle, but i want > the line to be a dotted one. > > Can someone help me out... > > Paint mPaint = new Paint(); > mPath.addRect(left, top, right, bottom, Direction.CCW); > mPaint.setAntiAlias(true); > mPaint.setDither(true); > mPaint.setColor(Color.GRAY); > mPaint.setStrokeWidth(1); > mCanvas.drawPath(mPath, mPaint); > > Regards, > R.Karthik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---