views:

141

answers:

1

I want to draw a shape(many circles particularly) into a Specific Bitmap. I have never used canvas / 2D graphs etc. Anyone that can point me to the right direction to do what i want.?

#

As i see it i create a Drawable put the bitmap in it then "canvas-it" to the shapes i want etc but i really need some guideline

A: 

OK i sorted it out

Bitmap b=BitmapFactory.decodeResource(CON.getResources(),R.drawable.deltio);
Bitmap bmOverlay = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig());
canvas = new Canvas(bmOverlay);
Paint paint = new Paint();
paint.setColor(Color.RED);
canvas.drawBitmap(b, new Matrix(), null);
canvas.drawCircle(750, 14, 11, paint);
weakwire
What are you doing with the resulting canvas to show the image in your UI?
Janusz
Bitmap b;b.setImageBitmap(bmOverlay);
weakwire