MatrixObject::CopyToClipboard

Description

Copy a rectangle portion of the matrix object to the clipboard.

Syntax

BOOL CopyToClipboard( RECT * pRect )

Parameters

pRect
[input] the rectangle portion to be copied to the clipboard

Return

Return TRUE if the rectangle was copied else FALSE

Examples

EX1

//Before run the following code, new a matrix and import an image to the matrix.
void MatrixObject_CopyToClipboard_Ex1()
{
    RECT rect;
    rect.left = 1;
    rect.top = 1;
    rect.right = 10;
    rect.bottom = 10;

    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixObject mo(mp.GetName(), 0);
    if( mo.CopyToClipboard(&rect) )
        printf("MatrixObject copied to clipboard");
}

Remark

See Also

CopyToMatrix

Header to Include

origin.h