Draw transparent color with PorterDuff clear mode does the trick for what I wanted.
Canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR)
More Related Contents:
- SurfaceView flashes black on load
- Understanding Canvas and Surface concepts
- Android Take Screenshot of Surface View Shows Black Screen
- how to make surfaceview transparent
- Android Camera Preview Stretched
- How to draw an overlay on a SurfaceView used by Camera on Android?
- Draw multi-line text to Canvas
- Out of Memory error with Bitmap
- Image on canvas to JPEG file
- Android canvas draw rectangle
- Measuring text height to be drawn on Canvas ( Android )
- Work around Canvas.clipPath() that is not supported in android any more
- Drawable image on a canvas
- Creating an empty bitmap and drawing though canvas in Android
- How to use android canvas to draw a Rectangle with only topleft and topright corners round?
- How to Measure TextView Height Based on Device Width and Font Size?
- Bezier curve and canvas
- Fragments – The specified child already has a parent. You must call removeView() on the child’s parent first
- Getting the pixel color value of a point on an Android View that includes a Bitmap-backed Canvas
- Rotating Image on A canvas in android
- Rotating an android VideoView
- MediaRecorder and VideoSource.SURFACE, stop failed: -1007 (a serious Android bug)
- how to create and save a screenshot from a surfaceview?
- Android: How to check if a rectangle contains touched point?
- Drawing an outer shadow when drawing an image
- How to display Text in Android Canvas ShapeDrawable with in the RectShape or OvalShape?
- How to resize a bitmap eficiently and with out losing quality in android
- how to pause and resume a surfaceView thread
- Android Multiple SurfaceViews
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?