How to manipulate images in android canvas? -


i having image in canvas.i want color @ particular pixels , replace user defined color.is possible abitmap placed in android canvas? in advance..

unfortunately canvas more write-only object: can draw on bitmap, can't information on bitmap. if have access bitmap itself, easy task: use bitmap.getpixel(int x, int y) color of pixels , draw whatever need on canvas or call bitmap.setpixel(int x, int y, int color) without creating canvas @ all.


Comments