Method CreateImageBrush
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CreateImageBrush(IDeviceImage, in ImageBrushProperties, in BrushProperties?)
Creates an image brush. The input image can be any type of image, including a bitmap, effect, or a command list.
IImageBrush CreateImageBrush(IDeviceImage image, in ImageBrushProperties imageBrushProperties, in BrushProperties? brushProperties = null)
Parameters
image
IDeviceImageThe image to be used as a source for the image brush.
imageBrushProperties
ImageBrushPropertiesThe properties specific to an image brush.
brushProperties
BrushProperties?Properties common to all brushes.
Returns
- IImageBrush
The new image brush.
Remarks
The image brush can be used to fill an arbitrary geometry, an opacity mask, or text.