CanvasDrawingSessionFillGeometry Method (CanvasGeometry, ICanvasBrush, ICanvasBrush) |
Namespace: Microsoft.Graphics.Canvas
public void FillGeometry( CanvasGeometry geometry, ICanvasBrush brush, ICanvasBrush opacityBrush )
Transparent portions of the opacity mask brush indicate the areas where the contents of the geometry will be transparent, while opaque portions of the mask indicate where the geometry is visible. The RGB color of the opacity mask is ignored.
For more flexible opacity mask options, see the CreateLayer Overload and CanvasActiveLayer.
Optimization note - this method is fastest when all the following requirements are satisfied:
The opacity mask brush is allowed to be null.