【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.24.28 Layer::PasteImage
Contents
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