[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.BitmapBrush.Create

Create Method

Create(RenderTarget, Bitmap)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap)
Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap) As BitmapBrush
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

Bitmap bitmap

The bitmap contents of the new brush.

Returns
Type Description
BitmapBrush

Create(RenderTarget, Bitmap, BitmapBrushProperties)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties bitmapBrushProperties)
Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, bitmapBrushProperties As BitmapBrushProperties) As BitmapBrush
Parameters
Type Name Description
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
Type Description
BitmapBrush

Create(RenderTarget, Bitmap, BrushProperties)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BrushProperties brushProperties)
Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, brushProperties As BrushProperties) As BitmapBrush
Parameters
Type Name Description
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
Type Description
BitmapBrush

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

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties? bitmapBrushProperties, BrushProperties? brushProperties)
Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, bitmapBrushProperties As BitmapBrushProperties?, brushProperties As BrushProperties?) As BitmapBrush
Parameters
Type Name Description
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
Type Description
BitmapBrush