[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.BitmapBrush

Class BitmapBrush

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

ID2D1BitmapBrush

[Guid("2cd906aa-12e2-11dc-9fed-001143a055f9")]
public class BitmapBrush : Brush, IDisposable, IUnknown
Inheritance
object
BitmapBrush
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

BitmapBrush(IntPtr)

Initializes a new instance of the BitmapBrush class.

public BitmapBrush(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, Bitmap, BitmapBrushProperties)

Creates an BitmapBrush from the specified bitmap.

public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties bitmapBrushProperties)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

bitmap Bitmap

The bitmap contents of the new brush.

bitmapBrushProperties BitmapBrushProperties

The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the Clamp horizontal and vertical extend modes and the Linear interpolation mode.

Returns

BitmapBrush

Create(RenderTarget, Bitmap, BrushProperties)

Creates an BitmapBrush from the specified bitmap.

public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BrushProperties brushProperties)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

bitmap Bitmap

The bitmap contents of the new brush.

brushProperties BrushProperties

The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.

Returns

BitmapBrush

Create(RenderTarget, Bitmap, BitmapBrushProperties?, BrushProperties?)

Creates an BitmapBrush from the specified bitmap.

public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties? bitmapBrushProperties, BrushProperties? brushProperties)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

bitmap Bitmap

The bitmap contents of the new brush.

bitmapBrushProperties BitmapBrushProperties?

The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the Clamp horizontal and vertical extend modes and the Linear interpolation mode.

brushProperties BrushProperties?

The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.

Returns

BitmapBrush

Create(RenderTarget, Bitmap)

Creates an BitmapBrush from the specified bitmap.

public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

bitmap Bitmap

The bitmap contents of the new brush.

Returns

BitmapBrush

GetBitmap()

void ID2D1BitmapBrush::GetBitmap([Out] ID2D1Bitmap** bitmap)

public Bitmap GetBitmap()

Returns

Bitmap

GetExtendModeX()

D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeX()

public ExtendMode GetExtendModeX()

Returns

ExtendMode

GetExtendModeY()

D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeY()

public ExtendMode GetExtendModeY()

Returns

ExtendMode

GetInterpolationMode()

D2D1_BITMAP_INTERPOLATION_MODE ID2D1BitmapBrush::GetInterpolationMode()

public BitmapInterpolationMode GetInterpolationMode()

Returns

BitmapInterpolationMode

SetBitmap(Bitmap)

void ID2D1BitmapBrush::SetBitmap([In, Optional] ID2D1Bitmap* bitmap)

public void SetBitmap(Bitmap bitmap)

Parameters

bitmap Bitmap

SetExtendModeX(ExtendMode)

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

public void SetExtendModeX(ExtendMode extendModeX)

Parameters

extendModeX ExtendMode

SetExtendModeY(ExtendMode)

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

public void SetExtendModeY(ExtendMode extendModeY)

Parameters

extendModeY ExtendMode

SetInterpolationMode(BitmapInterpolationMode)

void ID2D1BitmapBrush::SetInterpolationMode([In] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode)

public void SetInterpolationMode(BitmapInterpolationMode interpolationMode)

Parameters

interpolationMode BitmapInterpolationMode

Operators

explicit operator BitmapBrush(IntPtr)

Performs an explicit conversion from System.IntPtr to BitmapBrush.

public static explicit operator BitmapBrush(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

BitmapBrush