CanvasDrawingSessionCreateLayer Method (Single, Rect) |
Namespace: Microsoft.Graphics.Canvas
public CanvasActiveLayer CreateLayer( float opacity, Rect clipRectangle )
The layer affects all drawing until the returned CanvasActiveLayer object is closed. In C# this is typically done with a 'using' statement, or in C++/CX the 'delete' keyword.
For more information about layers, see CanvasActiveLayer.