Paste image as a GraphObject which from clipboard into layer
GraphObject PasteImage( int nx = 0, int ny = 0, DWORD dwCntrl = 0 )
The GraphObject that pasted.
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" ); } }
origin.h