[]
Loads the image from another instance of GcWicBitmap.
public void Import(GcWicBitmap sourceWicBitmap)
Public Sub Import(sourceWicBitmap As GcWicBitmap)
Type | Name | Description |
---|---|---|
GcWicBitmap | sourceWicBitmap | The source GcWicBitmap. |
Loads the image from an instance of the GcBitmap class.
If the source image is not opaque, the color channels must be premultiplied with the alpha channel.
public void Import(GcBitmap sourceBitmap)
Public Sub Import(sourceBitmap As GcBitmap)
Loads the image from a byte array containing the pixels buffer.
public void Import(byte[] bytes, int width, int height, WicPixelFormat pixelFormat)
Public Sub Import(bytes As Byte(), width As Integer, height As Integer, pixelFormat As WicPixelFormat)
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. |
WicPixelFormat | 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, WicPixelFormat pixelFormat)
Public Sub Import(bytes As Byte(), stride As Integer, width As Integer, height As Integer, pixelFormat As WicPixelFormat)
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. |
WicPixelFormat | pixelFormat | The pixel format of the image. |
Loads the image from the unmanaged block of memory pointed by IntPtr.
public void Import(IntPtr srcPtr, int width, int height, WicPixelFormat pixelFormat)
Public Sub Import(srcPtr As IntPtr, width As Integer, height As Integer, pixelFormat As WicPixelFormat)
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. |
WicPixelFormat | 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, WicPixelFormat pixelFormat)
Public Sub Import(srcPtr As IntPtr, stride As Integer, width As Integer, height As Integer, pixelFormat As WicPixelFormat)
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. |
WicPixelFormat | pixelFormat | The pixel format of the image. |