| Start |
|---|
| Rectangles You can use the Note: To deal with this, it's possible to reset the transformation matrix before you clear the canvas. Note: |
| Raw image data It's possible to write directly to the rendered image data using Note: |
| Complex shapes It's possible to clear complex shaped regions by changing the |
| Clear canvas with gradient. Rather than use To clear with a gradient This is about half as quick |
| Clear canvas using composite operation Clear the canvas using compositing operation. This will clear the canvas independent of transforms but is not as fast as anything drawn next will clear previous content. Syntax
RemarksNone of these methods will produce transparent pixels if the context was created with the |
Read Article
https://develop.horje.com/learn/1434/reference