[]
Loads the image from another instance of C1Bitmap.
public void Import(C1Bitmap bitmap)
Public Sub Import(bitmap As C1Bitmap)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bitmap | The source bitmap. |
Loads the image from a byte array containing the pixels buffer.
public void Import(byte[] bytes, int width, int height, PixelFormat pixelFormat)
Public Sub Import(bytes As Byte(), width As Integer, height As Integer, pixelFormat As PixelFormat)
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | The source byte array with pixel buffer. |
| int | width | The width of the image, in pixels. |
| int | height | The height of the image, in pixels. |
| PixelFormat | pixelFormat | The pixel format of the image. |
Loads the image from a byte array containing the pixels buffer with specified stride (bytes per row of pixels).
public void Import(byte[] bytes, int stride, int width, int height, PixelFormat pixelFormat)
Public Sub Import(bytes As Byte(), stride As Integer, width As Integer, height As Integer, pixelFormat As PixelFormat)
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | The source byte array with pixel buffer. |
| int | stride | The stride (bytes per row) of the image data in the source byte array. |
| int | width | The width of the image, in pixels. |
| int | height | The height of the image, in pixels. |
| PixelFormat | pixelFormat | The pixel format of the image. |
Loads the image from a unmanaged block of memory pointed by IntPtr.
public void Import(IntPtr srcPtr, int width, int height, PixelFormat pixelFormat)
Public Sub Import(srcPtr As IntPtr, width As Integer, height As Integer, pixelFormat As PixelFormat)
| Type | Name | Description |
|---|---|---|
| IntPtr | srcPtr | The pointer to the beginning of the unmanaged block of memory. |
| int | width | The width of the image, in pixels. |
| int | height | The height of the image, in pixels. |
| PixelFormat | pixelFormat | The pixel format of the image. |
Loads the image from a unmanaged block of memory pointed by IntPtr and having the specified stride (bytes per row of pixels).
public void Import(IntPtr srcPtr, int stride, int width, int height, PixelFormat pixelFormat)
Public Sub Import(srcPtr As IntPtr, stride As Integer, width As Integer, height As Integer, pixelFormat As PixelFormat)
| Type | Name | Description |
|---|---|---|
| IntPtr | srcPtr | The pointer to the beginning of the unmanaged block of memory. |
| int | stride | The stride (bytes per row) of the source image data. |
| int | width | The width of the image, in pixels. |
| int | height | The height of the image, in pixels. |
| PixelFormat | pixelFormat | The pixel format of the image. |
Loads the image from a WriteableBitmap.
public void Import(WriteableBitmap writeableBitmap)
Public Sub Import(writeableBitmap As WriteableBitmap)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | writeableBitmap | The source WriteableBitmap. |
Loads the image from a D2D.Bitmap1 (created with D2D.BitmapOptions.CpuRead).
public void Import(Bitmap1 d2dBitmap)
Public Sub Import(d2dBitmap As Bitmap1)
| Type | Name | Description |
|---|---|---|
| Bitmap1 | d2dBitmap | The source D2D.Bitmap1 image created with D2D.BitmapOptions.CpuRead. |
Loads the image from a D2D.Bitmap1.
public void Import(Bitmap1 d2dBitmap, DeviceContext context, RectL srcRect)
Public Sub Import(d2dBitmap As Bitmap1, context As DeviceContext, srcRect As RectL)
| Type | Name | Description |
|---|---|---|
| Bitmap1 | d2dBitmap | The source D2D.Bitmap1 image. |
| DeviceContext | context | The device context used to create a D2D bitmap. |
| RectL | srcRect | The source rectangle within d2dBitmap. |