CanvasImageBrush Class |
Namespace: Microsoft.Graphics.Canvas.Brushes
public sealed class CanvasImageBrush : ICanvasBrush, IDisposable
The CanvasImageBrush type exposes the following members.
Name | Description | |
---|---|---|
CanvasImageBrush(ICanvasResourceCreator) | Initializes a new instance of the CanvasImageBrush class. | |
CanvasImageBrush(ICanvasResourceCreator, ICanvasImage) | Initializes a new instance of the CanvasImageBrush class. |
Name | Description | |
---|---|---|
Device | The device associated with this brush. | |
ExtendX | Specifies how content is tiled horizontally when it extends beyond the Image. | |
ExtendY | Specifies how content is tiled vertically when it extends beyond the Image. | |
Image | Specifies an image used for the brush. | |
Interpolation | Specifies the image quality used for resizing and transforms. | |
Opacity | Specifies an opacity level used for this brush. The default is fully opaque. | |
SourceRectangle | Optional field which specifies the source rectangle of the brush. | |
Transform | Specifies a transform used for this brush. The default transform is identity. |
When using Direct2D interop, this Win2D class corresponds to the Direct2D interface ID2D1BitmapBrush1 (if Image is a CanvasBitmap and SourceRectangle is null) or ID2D1ImageBrush (if Image is any other type of ICanvasImage, or if SourceRectangle is set).