IASCanvas::CommitFrom

This method maps and sends the contents of an off-screen bitmap, starting at the specified coordinates, to the upper-left corner of a control.

Syntax

HRESULT CommitFrom( long xSrc, long ySrc );

Parameters

xSrc
[in] Specifies the left edge of the rectangle to be committed.
ySrc
[in] Specifies the upper edge of the rectangle to be committed.

Return Values

NOERROR indicates success. E_UNEXPECTED indicates that something unexpected happened.

Remarks

The specified starting corner of the bitmap is mapped to the upper-left corner of the control. If the committed portion of the bitmap is smaller than the control, the remainder of the control is painted in a default color. If the committed portion of the bitmap is larger than the control, the bitmap is clipped on the right and bottom sides.

See Also

IASCanvas::ClipAndCommit, IASCanvas::CommitAt