CanvasDrawingSessionFillRectangle Method (Single, Single, Single, Single, ICanvasBrush, ICanvasBrush) |
Namespace: Microsoft.Graphics.Canvas
public void FillRectangle( float x, float y, float w, float h, ICanvasBrush brush, ICanvasBrush opacityBrush )
Transparent portions of the opacity mask brush indicate the areas where the contents of the rectangle will be transparent, while opaque portions of the mask indicate where the rectangle 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.