BB FlashBack SDK: The FBGDIBitmap Class

CopyToContext

Description

Copies the contents of the FBGDIBitmap class into a device context.

Syntax

[C#/C++]
public long CopyToContext (long GDIContext, long CopyToPositionX, long CopyToPositionY, long CopyWidth, long CopyHeight, long CopyFromPositionX, long CopyFromPositionY);

[VB.NET]
Public Function CopyToContext (ByVal GDIContext As Integer, ByVal CopyToPositionX As Integer, ByVal CopyToPositionY As Integer, ByVal CopyWidth As Integer, ByVal CopyHeight As Integer, ByVal CopyFromPositionX As Integer, ByVal CopyFromPositionY As Integer) As Integer

Parameters

GDIContext - handle to a device context

CopyToPositionX - the X co-ordinate of the point in the target device context into which the bitmap will be copied

CopyToPositionY - the Y co-ordinate of the point in the target device context into which the bitmap will be copied

CopyWidth - width of the rectangle to copy from the bitmap

CopyHeight - height of the rectangle to copy from the bitmap

CopyFromPositionX - the X co-ordinate in the bitmap of the top left corner of the rectangle to be copied

CopyFromPositionY - the X co-ordinate in the bitmap of the top left corner of the rectangle to be copied

Returns

Returned values are identical to those returned from the Win32 API BitBlt. CopyToContext calls this function internally.

Remarks

See About the FBGDIBitmap class for example usage.