¡@

Home 

2014/10/16 ¤W¤È 08:26:26

android Programming Glossary: this.setontouchlistener

Android FingerPaint Undo/Redo implementation

http://stackoverflow.com/questions/10165965/android-fingerpaint-undo-redo-implementation

xright xtop xbottom public DrawingPanel Context context super context setFocusable true setFocusableInTouchMode true this.setOnTouchListener this circlePaint new Paint mPaint new Paint outercirclePaint new Paint outercirclePaint.setAntiAlias true circlePaint.setAntiAlias..

Android Canvas Redo and Undo Operation

http://stackoverflow.com/questions/11114625/android-canvas-redo-and-undo-operation

Path private Bitmap im public DrawView Context context super context setFocusable true setFocusableInTouchMode true this.setOnTouchListener this mPaint new Paint mPaint.setAntiAlias true mPaint.setDither true mPaint.setColor 0xFFFFFFFF mPaint.setStyle Paint.Style.STROKE.. Path private Bitmap im public DrawView Context context super context setFocusable true setFocusableInTouchMode true this.setOnTouchListener this mPaint new Paint mPaint.setAntiAlias true mPaint.setDither true mPaint.setColor 0xFFFFFFFF mPaint.setStyle Paint.Style.STROKE..

how to get select area which cover by canvas in android

http://stackoverflow.com/questions/11840811/how-to-get-select-area-which-cover-by-canvas-in-android

Paint.Style.STROKE mPaint.setStrokeJoin Paint.Join.ROUND mPaint.setStrokeCap Paint.Cap.ROUND mPaint.setStrokeWidth 3 this.setOnTouchListener new View.OnTouchListener @Override public boolean onTouch View v MotionEvent event switch event.getActionMasked case..

Erase bitmap parts using PorterDuff mode

http://stackoverflow.com/questions/3467334/erase-bitmap-parts-using-porterduff-mode

eraserPaint new Paint public DrawView Context context super context setFocusable true setFocusableInTouchMode true this.setOnTouchListener this Set background this.setBackgroundColor Color.GREEN Set bitmap bitmap Bitmap.createBitmap 320 480 Bitmap.Config.RGB_565..

Drawing on Canvas and save image

http://stackoverflow.com/questions/7401432/drawing-on-canvas-and-save-image

Paint paint new Paint public DrawView Context context super context setFocusable true setFocusableInTouchMode true this.setOnTouchListener this paint.setColor Color.BLACK @Override public void onDraw Canvas canvas for Point point points canvas.drawCircle point.x..