Table of Contents

Method FillGeometry

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

FillGeometry(IGeometry, IDeviceBrush, IDeviceBrush?)

Paints the interior of the specified geometry.

void FillGeometry(IGeometry geometry, IDeviceBrush brush, IDeviceBrush? opacityBrush = null)

Parameters

geometry IGeometry

The geometry to paint.

brush IDeviceBrush

The brush used to paint the geometry's interior.

opacityBrush IDeviceBrush

The opacity mask to apply to the geometry, or null for no opacity mask. If an opacity mask (the opacityBrush parameter) is specified, brush must be an IBitmapBrush that has its x- and y-extend modes set to Clamp. For more information, see the Remarks section.

Remarks

If the opacityBrush parameter is not null, the alpha value of each pixel of the mapped opacityBrush is used to determine the resulting opacity of each corresponding pixel of the geometry. Only the alpha value of each color in the brush is used for this processing; all other color information is ignored.
The alpha value specified by the brush is multiplied by the alpha value of the geometry after the geometry has been painted by brush.