ImageGear Professional DLL v17.1 for Windows Accusoft
IG_clipboard_paste
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Clipboard Functions > IG_clipboard_paste

Glossary Item Box

This function creates a HIGEAR image by pasting the image on the system clipboard.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_clipboard_paste (
        LPHIGEAR lphIGear 
);

Arguments:

lphIGear Far pointer to a variable of type HIGEAR, to receive the HIGEAR handle of the image created by this operation.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

Indexed RGB – 1, 4, 8 bpp;
RGB – 24 bpp.

Sample:

Clipboard, Image Processing

Example:

  Copy Code
HIGEAR hIGear; /* Receives the HIGEAR handle the image created  */
BOOL bPasteAvail;  /* TRUE if a pasteable image is present  */
AT_ERRCOUNT   nErrcount;    /* Holds the returned error count*/
IG_clipboard_paste_available ( &bPasteAvail);
if ( bPasteAvail )
/* Create HIGEAR image from contents of system clipboard:*/
        { nErrcount = IG_clipboard_paste ( &hIGear ); 
        if ( nErrcount )  { ... } /* Process any errors ...*/ }

Remarks:

Prior to calling this function, call IG_clipboard_paste_available_ex() to verify that there is a paste-able image in the clipboard.

©2012. Accusoft Corporation. All Rights Reserved.