copyImageFromClipboard

copyImageFromClipboard(): Binary;

The copyImageFromClipboard method of the Application class returns the binary image contained in the Windows clipboard.

This method performs the following actions to copy an image from the Windows clipboard if it is available.

  1. Checks whether a non‑standard clipboard format called PNG is available. If it is available and the content is a .png file, a copy of that image is returned.

  2. Checks whether an image in the standard Microsoft Windows CF_DIB format is available. If so, that image is copied from the clipboard and returned as a bitmap‑type (.bmp) image.

  3. Checks whether an image in the standard Microsoft Windows CF_ENHMETAFILE (enhanced meta file) format is available. If so, that image is copied from the clipboard and returned.

If the clipboard is locked by another Windows process (which is not a normal occurrence) or an image in any of the supported formats is not available, this method returns a null binary.

2016.0.01 and higher