Question

Is there any way to draw some icons or something in Canvas inside points or circles? For example a company´s logo? Could be with bitmap or similar?

Était-ce utile?

La solution

Use the different methods from Canvas "draw()" and you just have to take care of your bounds. Use for example:

mCanvas.drawBitmap(Bitmap bitmap, float left, float top, Paint paint);
mCanvas.drawCircle(float cx, float cy, float radius, Paint paint);

Check it here: http://developer.android.com/reference/android/graphics/Canvas.html

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top