|CanvasDrawingSessionCreateLayer Method (Single, ICanvasBrush, Rect, CanvasGeometry, Matrix3x2, CanvasLayerOptions)|
public CanvasActiveLayer CreateLayer( float opacity, ICanvasBrush opacityBrush, Rect clipRectangle, CanvasGeometry clipGeometry, Matrix3x2 geometryTransform, CanvasLayerOptions options )
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.
Antialising mode of the clip geometry is determined by the value of the Antialiasing property when CreateLayer is called.
For more information about layers, see CanvasActiveLayer.