[]
Initializes a new instance of the Bitmap class.
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
| 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)
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
| 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)
Public Shared Function Create(factory As ImagingFactory, bitmapSource As BitmapSource, [option] As BitmapCreateCacheOption) As Bitmap
| 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)
Public Shared Function Create(factory As ImagingFactory, bitmapSource As BitmapSource, rectangle As RectL) As Bitmap
| 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)
Public Shared Function Create(factory As ImagingFactory, icon As Icon) As Bitmap
| Type | Name | Description |
|---|---|---|
| ImagingFactory | factory | The factory. |
| Icon | icon | The icon. |
| Type | Description |
|---|---|
| Bitmap |
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
| Type | Name | Description |
|---|---|---|
| ImagingFactory | factory | The factory. |
| Bitmap | bitmap | The bitmap. |
| BitmapAlphaChannelOption | options | The options. |
| Type | Description |
|---|---|
| Bitmap |