[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.ImageBrush

Class ImageBrush

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1ImageBrush

[Guid("fe9e984d-3f95-407c-b5db-cb94d4e8f87c")]
public class ImageBrush : Brush, IDisposable, IUnknown
Inheritance
object
ImageBrush
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ImageBrush(IntPtr)

Initializes a new instance of the ImageBrush class.

public ImageBrush(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(DeviceContext, Image, ImageBrushProperties, BrushProperties)

Initializes a new instance of the ImageBrush class.

public static ImageBrush Create(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.

Returns

ImageBrush

Create(DeviceContext, Image, ImageBrushProperties)

Initializes a new instance of the ImageBrush class.

public static ImageBrush Create(DeviceContext context, Image image, ImageBrushProperties imageBrushProperties)

Parameters

context DeviceContext

The context.

image Image

The image.

imageBrushProperties ImageBrushProperties

The image brush properties.

Returns

ImageBrush

GetExtendModeX()

D2D1_EXTEND_MODE ID2D1ImageBrush::GetExtendModeX()

public ExtendMode GetExtendModeX()

Returns

ExtendMode

GetExtendModeY()

D2D1_EXTEND_MODE ID2D1ImageBrush::GetExtendModeY()

public ExtendMode GetExtendModeY()

Returns

ExtendMode

GetImage()

void ID2D1ImageBrush::GetImage([Out] ID2D1Image** image)

public Image GetImage()

Returns

Image

GetInterpolationMode()

D2D1_INTERPOLATION_MODE ID2D1ImageBrush::GetInterpolationMode()

public InterpolationMode GetInterpolationMode()

Returns

InterpolationMode

GetSourceRectangle()

void ID2D1ImageBrush::GetSourceRectangle([Out] D2D_RECT_F* sourceRectangle)

public RectF GetSourceRectangle()

Returns

RectF

SetExtendModeX(ExtendMode)

void ID2D1ImageBrush::SetExtendModeX([In] D2D1_EXTEND_MODE extendModeX)

public void SetExtendModeX(ExtendMode extendModeX)

Parameters

extendModeX ExtendMode

SetExtendModeY(ExtendMode)

void ID2D1ImageBrush::SetExtendModeY([In] D2D1_EXTEND_MODE extendModeY)

public void SetExtendModeY(ExtendMode extendModeY)

Parameters

extendModeY ExtendMode

SetImage(Image)

void ID2D1ImageBrush::SetImage([In, Optional] ID2D1Image* image)

public void SetImage(Image image)

Parameters

image Image

SetInterpolationMode(InterpolationMode)

void ID2D1ImageBrush::SetInterpolationMode([In] D2D1_INTERPOLATION_MODE interpolationMode)

public void SetInterpolationMode(InterpolationMode interpolationMode)

Parameters

interpolationMode InterpolationMode

SetSourceRectangle(RectF)

void ID2D1ImageBrush::SetSourceRectangle([In] const D2D_RECT_F* sourceRectangle)

public void SetSourceRectangle(RectF sourceRectangle)

Parameters

sourceRectangle RectF

Operators

explicit operator ImageBrush(IntPtr)

Performs an explicit conversion from System.IntPtr to ImageBrush.

public static explicit operator ImageBrush(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ImageBrush