[]
        
(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)
Public Shared Function Create(factory As ImagingFactory, width As Integer, height As Integer, pixelFormat As Guid, [option] As BitmapCreateCacheOption) As Bitmap
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)
Public Shared Function Create(factory As ImagingFactory, width As Integer, height As Integer, pixelFormat As Guid, dataRectangle As DataRectangle, Optional totalSizeInBytes As Integer = 0) As Bitmap
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)
Public Shared Function Create(factory As ImagingFactory, bitmapSource As BitmapSource, [option] As BitmapCreateCacheOption) As Bitmap
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)
Public Shared Function Create(factory As ImagingFactory, bitmapSource As BitmapSource, rectangle As RectL) As Bitmap
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)
Public Shared Function Create(factory As ImagingFactory, icon As Icon) As Bitmap
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)
Public Shared Function Create(factory As ImagingFactory, bitmap As Bitmap, options As BitmapAlphaChannelOption) As Bitmap
Parameters
Type Name Description
ImagingFactory factory

The factory.

Bitmap bitmap

The bitmap.

BitmapAlphaChannelOption options

The options.

Returns
Type Description
Bitmap