Table of Contents

Class ImageBrush

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[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 DeviceContext

The context.

image Image

The image.

imageBrushProperties ImageBrushProperties

The 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 DeviceContext

The context.

image Image

The image.

imageBrushProperties ImageBrushProperties

The image brush properties.

brushProperties BrushProperties

The 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

ExtendMode

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

ExtendMode

Image

Gets or sets the image associated with the image brush.

public Image Image { get; set; }

Property Value

Image

InterpolationMode

Gets or sets the interpolation mode of the image brush.

public InterpolationMode InterpolationMode { get; set; }

Property Value

InterpolationMode

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

Returns

ImageBrush