[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.BitmapBrush1.Create

Create Method

Create(DeviceContext, Bitmap1)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap)
Parameters
Type Name Description
DeviceContext deviceContext

an instance of DeviceContext

Bitmap1 bitmap

The bitmap contents of the new brush.

Returns
Type Description
BitmapBrush1

Create(DeviceContext, Bitmap1, BitmapBrushProperties1)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BitmapBrushProperties1 bitmapBrushProperties)
Parameters
Type Name Description
DeviceContext deviceContext

an instance of DeviceContext

Bitmap1 bitmap

The bitmap contents of the new brush.

BitmapBrushProperties1 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
BitmapBrush1

Create(DeviceContext, Bitmap1, BrushProperties)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BrushProperties brushProperties)
Parameters
Type Name Description
DeviceContext deviceContext

an instance of DeviceContext

Bitmap1 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
BitmapBrush1

Create(DeviceContext, Bitmap1, BitmapBrushProperties1?, BrushProperties?)

Creates an BitmapBrush from the specified bitmap.

Declaration
public static BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BitmapBrushProperties1? bitmapBrushProperties, BrushProperties? brushProperties)
Parameters
Type Name Description
DeviceContext deviceContext

an instance of DeviceContext

Bitmap1 bitmap

The bitmap contents of the new brush.

BitmapBrushProperties1? 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
BitmapBrush1