How to get canvas pixel
I have a canvas on which I draw lines: //see code upd I need to make the pipette tool which will take color from my canvas. How may I make it? Code upd: private static class DrawView extends View { ... public DrawView(Context context) { super(context); setFocusable(true); mBitmap = Bitmap.createBitmap(640, 860, Bitmap.Config.ARGB_8888); mCanvas = new Canvas(mBitmap); mPath = new Path(); mBitmapPaint = new Paint(Paint.DITHER_FLAG); this.setDrawingCacheEnabled(true); } @Override protected void onDraw(Canvas canvas) { canvas.drawColor(0xFFAAAAAA); canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);