2.2.4.24.25 Layer::PasteImage


Description

Paste image as a GraphObject which from clipboard into layer

Syntax

GraphObject PasteImage( int nx = 0, int ny = 0, DWORD dwCntrl = 0 )

Parameters

nx
[input] the x position of the layer to paste image
ny
[input] the y position of the layer to paste image
dwCntrl
[input] enum as PASTEIMAGE_*

Return

The GraphObject that pasted.

Examples

EX1

//assume an image exist in clipboard
void Layer_PasteImage_ex1()
{
    Layer ly = Project.ActiveLayer();
    if( !ly.IsValid() )
        return;
    
    GraphObject go = ly.PasteImage();
    if( go.IsValid() )
    {
        out_str( "GraphObject is valid" );
    }
    else
    {
        out_str( "GraphObject is not valid" );
    }
}

Remark

See Also

Header to Included

origin.h