TerPastePicture
Paste a picture from the buffer or clipboard.
int TerPastePicture( format, image, ParaFrameId, align, insert)
String format; | A format String to specify the DataFormat class. This information is used to paste a specific data from clipboard. You can set this parameter to null to specify the default format. This parameter is used only when the 'image' parameter is null. |
| Image image | Image to paste. Set this parameter to null to paste the picture from the clipboard. |
int ParaFrameId; | Id of the frame to insert the picture into. Set 0 for default. |
int align; | picture alignment relative to the baseline of the text: ALIGN_BOT (default), ALIGN_TOP, ALIGN_MIDDLE.A |
boolean insert; | true to insert the picture into text. false to simply return the picture id without inserting the picture into text. |
Return Value: This function returns a non-zero picture id, if successful. Otherwise it returns zero.