CanvasDrawingSessionCreateLayer Method (ICanvasBrush, Rect) |
Namespace: Microsoft.Graphics.Canvas
public CanvasActiveLayer CreateLayer( ICanvasBrush opacityBrush, 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.