[]
        
(Showing Draft Content)

C1.Win.Bitmap.C1Bitmap.ImportAsFragment

ImportAsFragment Method

ImportAsFragment(C1Bitmap, int, int)

Loads another C1Bitmap to the given destination within the image.

Declaration
public void ImportAsFragment(C1Bitmap bitmap, int dstX, int dstY)
Parameters
Type Name Description
C1Bitmap bitmap

The source bitmap.

int dstX

The destination X pixel coordinate within the target bitmap.

int dstY

The destination Y pixel coordinate within the target bitmap.

ImportAsFragment(byte[], ImageRect)

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

Declaration
public void ImportAsFragment(byte[] bytes, ImageRect dstRect)
Parameters
Type Name Description
byte[] bytes

The source byte array with pixel buffer.

ImageRect dstRect

The destination rectangle within the target bitmap.

ImportAsFragment(IntPtr, ImageRect)

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

Declaration
public void ImportAsFragment(IntPtr srcPtr, ImageRect dstRect)
Parameters
Type Name Description
IntPtr srcPtr

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

ImageRect dstRect

The destination rectangle within the target bitmap.

ImportAsFragment(Bitmap, int, int)

Loads a System.Drawing.Bitmap to the given destination within the image.

Declaration
public void ImportAsFragment(Bitmap gdiBitmap, int dstX, int dstY)
Parameters
Type Name Description
Bitmap gdiBitmap

The source System.Drawing.Bitmap.

int dstX

The destination X pixel coordinate within the target bitmap.

int dstY

The destination Y pixel coordinate within the target bitmap.

ImportAsFragment(Bitmap1, DeviceContext, RectL, int, int)

Loads a fragment of the D2D.Bitmap1 to the given destination within the image.

Declaration
public void ImportAsFragment(Bitmap1 d2dBitmap, DeviceContext context, RectL srcRect, int dstX, int dstY)
Parameters
Type Name Description
Bitmap1 d2dBitmap

The source D2D.Bitmap1.

DeviceContext context

The device context used to create a D2D bitmap.

RectL srcRect

The source rectangle within d2dBitmap.

int dstX

The destination X pixel coordinate within the target bitmap.

int dstY

The destination Y pixel coordinate within the target bitmap.