¡@

Home 

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

android Programming Glossary: backcolor

Punch a hole in a rectangle overlay with HW acceleration enabled on View

http://stackoverflow.com/questions/13528550/punch-a-hole-in-a-rectangle-overlay-with-hw-acceleration-enabled-on-view

Path.Direction.CW circle.close canvas.clipPath circle Region.Op.DIFFERENCE Draw the rectangle color. canvas.drawColor backColor canvas.restoreToCount saveCount This does not work with hardware acceleration enabled for the view because 'canvas.clipPath'.. getWidth getHeight Bitmap.Config.ARGB_8888 final Canvas c new Canvas b Draw the rectangle colour. c.drawColor backColor Erase a circle. c.drawCircle cx cy radius eraser Draw the bitmap on our views canvas. canvas.drawBitmap b 0 0 null Where.. the view is created every drawing call. Method 3 HW Acceleration Fast does not work on some devices canvas.drawColor backColor canvas.drawCircle cx cy radius eraser Same as the HW acceleration compatible method but no extra canvas required. There..