[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmap.ImportAsFragment

ImportAsFragment Method

ImportAsFragment(GcWicBitmap, int, int)

Loads another GcWicBitmap at the given destination within the image.

Declaration
public void ImportAsFragment(GcWicBitmap sourceWicBitmap, int xDst, int yDst)
Public Sub ImportAsFragment(sourceWicBitmap As GcWicBitmap, xDst As Integer, yDst As Integer)
Parameters
Type Name Description
GcWicBitmap sourceWicBitmap

The source GcWicBitmap.

int xDst

The destination X pixel coordinate within the target bitmap.

int yDst

The destination Y pixel coordinate within the target bitmap.

ImportAsFragment(GcBitmap, int, int)

Loads a GcBitmap at the given destination within the image.

If the source image is not opaque, the color channels must be premultiplied with the alpha channel.

Declaration
public void ImportAsFragment(GcBitmap sourceBitmap, int xDst, int yDst)
Public Sub ImportAsFragment(sourceBitmap As GcBitmap, xDst As Integer, yDst As Integer)
Parameters
Type Name Description
GcBitmap sourceBitmap

The source GcBitmap.

int xDst

The destination X pixel coordinate within the target bitmap.

int yDst

The destination Y pixel coordinate within the target bitmap.

See Also

ImportAsFragment(byte[], Rectangle)

Loads the pixel buffer from a byte array at the given destination within the image.

Declaration
public void ImportAsFragment(byte[] bytes, Rectangle dstRect)
Public Sub ImportAsFragment(bytes As Byte(), dstRect As Rectangle)
Parameters
Type Name Description
byte[] bytes

The source byte array with pixel buffer.

Rectangle dstRect

The destination rectangle within the target bitmap.

ImportAsFragment(IntPtr, Rectangle)

Copies the unmanaged block of memory ato the given destination within the image.

Declaration
public void ImportAsFragment(IntPtr srcPtr, Rectangle dstRect)
Public Sub ImportAsFragment(srcPtr As IntPtr, dstRect As Rectangle)
Parameters
Type Name Description
IntPtr srcPtr

The pointer to the beginning of the unmanaged block of memory.

Rectangle dstRect

The destination rectangle within the target bitmap.