[]
        
(Showing Draft Content)

C1.Util.DX.WIC.Bitmap.Create

Create Method

Create(ImagingFactory, int, int, Guid, BitmapCreateCacheOption)

Initializes a new instance of the Bitmap class.

Declaration
public static Bitmap Create(ImagingFactory factory, int width, int height, Guid pixelFormat, BitmapCreateCacheOption option)
Parameters
Type Name Description
ImagingFactory factory

The factory.

int width

The width.

int height

The height.

Guid pixelFormat

The pixel format. PixelFormat for a list of valid formats.

BitmapCreateCacheOption option

The option.

Returns
Type Description
Bitmap

Create(ImagingFactory, int, int, Guid, DataRectangle, int)

Initializes a new instance of the Bitmap class from a memory location using DataRectangle.

Declaration
public static Bitmap Create(ImagingFactory factory, int width, int height, Guid pixelFormat, DataRectangle dataRectangle, int totalSizeInBytes = 0)
Parameters
Type Name Description
ImagingFactory factory

The factory.

int width

The width.

int height

The height.

Guid pixelFormat

The pixel format.

DataRectangle dataRectangle

The data rectangle.

int totalSizeInBytes

Size of the buffer in dataRectangle. If == 0, calculate the size automatically based on the height and row pitch.

Returns
Type Description
Bitmap

Create(ImagingFactory, BitmapSource, BitmapCreateCacheOption)

Initializes a new instance of the Bitmap class from a BitmapSource

Declaration
public static Bitmap Create(ImagingFactory factory, BitmapSource bitmapSource, BitmapCreateCacheOption option)
Parameters
Type Name Description
ImagingFactory factory

The factory.

BitmapSource bitmapSource

The bitmap source ref.

BitmapCreateCacheOption option

The option.

Returns
Type Description
Bitmap

Create(ImagingFactory, BitmapSource, RectL)

Initializes a new instance of the Bitmap class from a BitmapSource.

Declaration
public static Bitmap Create(ImagingFactory factory, BitmapSource bitmapSource, RectL rectangle)
Parameters
Type Name Description
ImagingFactory factory

The factory.

BitmapSource bitmapSource

The bitmap source.

RectL rectangle

The rectangle.

Returns
Type Description
Bitmap

Create(ImagingFactory, Icon)

Initializes a new instance of the Bitmap class from a Icon.

Declaration
public static Bitmap Create(ImagingFactory factory, Icon icon)
Parameters
Type Name Description
ImagingFactory factory

The factory.

Icon icon

The icon.

Returns
Type Description
Bitmap

Create(ImagingFactory, Bitmap, BitmapAlphaChannelOption)

Initializes a new instance of the Bitmap class from a Bitmap.

Declaration
public static Bitmap Create(ImagingFactory factory, Bitmap bitmap, BitmapAlphaChannelOption options)
Parameters
Type Name Description
ImagingFactory factory

The factory.

Bitmap bitmap

The bitmap.

BitmapAlphaChannelOption options

The options.

Returns
Type Description
Bitmap