android Programming Glossary: mpaint.setxfermode
Android Paint PorterDuff.Mode.CLEAR http://stackoverflow.com/questions/10494442/android-paint-porterduff-mode-clear canvas.drawPath mPath mPaint Eraser case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true..
Draw in Canvas by finger android http://stackoverflow.com/questions/16650419/draw-in-canvas-by-finger-android mPath mPaint kill this so we don't double draw mPath.reset mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SCREEN mPaint.setMaskFilter.. public boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID.. mPaint.setMaskFilter null return true case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR mPaint.setAlpha..
Android Null Exception on Calling function http://stackoverflow.com/questions/17781069/android-null-exception-on-calling-function public boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID.. null return true case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true.. PorterDuff.Mode.CLEAR return true case SRCATOP_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC_ATOP mPaint.setAlpha..
Making Overlaid image transparent on touch in Android? http://stackoverflow.com/questions/3021401/making-overlaid-image-transparent-on-touch-in-android You need to set the PorterDuff mode on a Paint object mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC and draw with Color.TRANSPARENT..
Make certain area of bitmap transparent on touch http://stackoverflow.com/questions/5368774/make-certain-area-of-bitmap-transparent-on-touch a Paint like below to make it transparent mPaint new Paint mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC mPaint.setColor Color.TRANSPARENT..
Android Paint PorterDuff.Mode.CLEAR http://stackoverflow.com/questions/10494442/android-paint-porterduff-mode-clear Color.WHITE canvas.drawBitmap mBitmap 0 0 mBitmapPaint canvas.drawPath mPath mPaint Eraser case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true And how I'm saving the image Calendar currentDate Calendar.getInstance..
Draw in Canvas by finger android http://stackoverflow.com/questions/16650419/draw-in-canvas-by-finger-android mX mY commit the path to our offscreen mCanvas.drawPath mPath mPaint kill this so we don't double draw mPath.reset mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SCREEN mPaint.setMaskFilter null @Override public boolean onTouchEvent MotionEvent.. Menu menu super.onPrepareOptionsMenu menu return true @Override public boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID new ColorPickerDialog this this mPaint.getColor .show.. if mPaint.getMaskFilter mBlur mPaint.setMaskFilter mBlur else mPaint.setMaskFilter null return true case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR mPaint.setAlpha 0x80 return true case SRCATOP_MENU_ID mPaint.setXfermode new..
Android Null Exception on Calling function http://stackoverflow.com/questions/17781069/android-null-exception-on-calling-function Menu menu super.onPrepareOptionsMenu menu return true @Override public boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID new ColorPickerDialog this this mPaint.getColor .show.. mBlur mPaint.setMaskFilter mBlur else mPaint.setMaskFilter null return true case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true case SRCATOP_MENU_ID mPaint.setXfermode new PorterDuffXfermode.. ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true case SRCATOP_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC_ATOP mPaint.setAlpha 0x80 return true return super.onOptionsItemSelected..
Making Overlaid image transparent on touch in Android? http://stackoverflow.com/questions/3021401/making-overlaid-image-transparent-on-touch-in-android processing android custom view share improve this question You need to set the PorterDuff mode on a Paint object mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC and draw with Color.TRANSPARENT Also see this thread in the Android developer..
Make certain area of bitmap transparent on touch http://stackoverflow.com/questions/5368774/make-certain-area-of-bitmap-transparent-on-touch bmp2 new Matrix null I have looked into this post and have a Paint like below to make it transparent mPaint new Paint mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC mPaint.setColor Color.TRANSPARENT mPaint.setAntiAlias true public void onDraw..
|