Class ImageBrush
[Guid("fe9e984d-3f95-407c-b5db-cb94d4e8f87c")]
public class ImageBrush : Brush
- Inheritance
-
ImageBrush
- Inherited Members
Constructors
ImageBrush(DeviceContext, Image, ImageBrushProperties)
Initializes a new instance of the ImageBrush class.
public ImageBrush(DeviceContext context, Image image, ImageBrushProperties imageBrushProperties)
Parameters
context
DeviceContextThe context.
image
ImageThe image.
imageBrushProperties
ImageBrushPropertiesThe image brush properties.
ImageBrush(DeviceContext, Image, ImageBrushProperties, BrushProperties)
Initializes a new instance of the ImageBrush class.
public ImageBrush(DeviceContext context, Image image, ImageBrushProperties imageBrushProperties, BrushProperties brushProperties)
Parameters
context
DeviceContextThe context.
image
ImageThe image.
imageBrushProperties
ImageBrushPropertiesThe image brush properties.
brushProperties
BrushPropertiesThe brush properties.
ImageBrush(nint)
public ImageBrush(nint nativePtr)
Parameters
nativePtr
nint
Properties
ExtendModeX
Gets or sets the extend mode of the image brush on the x-axis.
public ExtendMode ExtendModeX { get; set; }
Property Value
ExtendModeY
Gets or sets the extend mode of the image brush on the y-axis of the image.
public ExtendMode ExtendModeY { get; set; }
Property Value
Image
Gets or sets the image associated with the image brush.
public Image Image { get; set; }
Property Value
InterpolationMode
Gets or sets the interpolation mode of the image brush.
public InterpolationMode InterpolationMode { get; set; }
Property Value
SourceRectangle
Gets or sets the rectangle that will be used as the bounds of the image when drawn as an image brush.
public RawRectangleF SourceRectangle { get; set; }
Property Value
- RawRectangleF
Operators
explicit operator ImageBrush(nint)
public static explicit operator ImageBrush(nint nativePtr)
Parameters
nativePtr
nint