[]
Initializes a new instance of the Bitmap class.
public static Bitmap Create(ImagingFactory factory, int width, int height, Guid pixelFormat, BitmapCreateCacheOption option)
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. |
Type | Description |
---|---|
Bitmap |
Initializes a new instance of the Bitmap class from a memory location using DataRectangle.
public static Bitmap Create(ImagingFactory factory, int width, int height, Guid pixelFormat, DataRectangle dataRectangle, int totalSizeInBytes = 0)
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. |
Type | Description |
---|---|
Bitmap |
Initializes a new instance of the Bitmap class from a BitmapSource
public static Bitmap Create(ImagingFactory factory, BitmapSource bitmapSource, BitmapCreateCacheOption option)
Type | Name | Description |
---|---|---|
ImagingFactory | factory | The factory. |
BitmapSource | bitmapSource | The bitmap source ref. |
BitmapCreateCacheOption | option | The option. |
Type | Description |
---|---|
Bitmap |
Initializes a new instance of the Bitmap class from a BitmapSource.
public static Bitmap Create(ImagingFactory factory, BitmapSource bitmapSource, RectL rectangle)
Type | Name | Description |
---|---|---|
ImagingFactory | factory | The factory. |
BitmapSource | bitmapSource | The bitmap source. |
RectL | rectangle | The rectangle. |
Type | Description |
---|---|
Bitmap |
public static Bitmap Create(ImagingFactory factory, Icon icon)
Type | Name | Description |
---|---|---|
ImagingFactory | factory | The factory. |
Icon | icon | The icon. |
Type | Description |
---|---|
Bitmap |
public static Bitmap Create(ImagingFactory factory, Bitmap bitmap, BitmapAlphaChannelOption options)
Type | Name | Description |
---|---|---|
ImagingFactory | factory | The factory. |
Bitmap | bitmap | The bitmap. |
BitmapAlphaChannelOption | options | The options. |
Type | Description |
---|---|
Bitmap |