Hello soniya,
I couldn't exactly get what you want, but this code should push you into the right direction.
Using java Syntax Highlighting
Bitmap outBitmap = Bitmap.createBitmap(100, 100, true);
Canvas c = new Canvas(outBitmap); // Drawings to "c" will result on "outBitmap"
Paint myPaint = new Paint();
c.drawRoundRect(new RectF(10,10,90,90), 5, 5, myPaint);
c.drawRoundRect(new RectF(15,15,85,85), 5, 5, myPaint);
Parsed in 0.031 seconds, using
GeSHi 1.0.8.4
Feel free to ask further questions
Regards,
plusminus