[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Import

Import Method

Import(GcWicBitmap)

Loads the image from another instance of GcWicBitmap.

Declaration
public void Import(GcWicBitmap sourceWicBitmap)
Public Sub Import(sourceWicBitmap As GcWicBitmap)
Parameters
Type Name Description
GcWicBitmap sourceWicBitmap

The source GcWicBitmap.

Import(GcBitmap)

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.

Declaration
public void Import(GcBitmap sourceBitmap)
Public Sub Import(sourceBitmap As GcBitmap)
Parameters
Type Name Description
GcBitmap sourceBitmap

The source GcBitmap.

See Also

Import(byte[], int, int, WicPixelFormat)

Loads the image from a byte array containing the pixels buffer.

Declaration
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)
Parameters
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.

Import(byte[], int, int, int, WicPixelFormat)

Loads the image from a byte array containing the pixels buffer with specified stride (bytes per row of pixels).

Declaration
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)
Parameters
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.

Import(IntPtr, int, int, WicPixelFormat)

Loads the image from the unmanaged block of memory pointed by IntPtr.

Declaration
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)
Parameters
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.

Import(IntPtr, int, int, int, WicPixelFormat)

Loads the image from a unmanaged block of memory pointed by IntPtr and having the specified stride (bytes per row of pixels).

Declaration
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)
Parameters
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.