Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FifteenWindows/OS Functions (continued)

ClipboardGetPNG Function

Overview

The ClipboardGetPNG function retrieves Portable Network Graphic (PNG) data from the clipboard, if available, in the form of a Data Object.

Syntax/Parameters

Syntax

handle = ClipboardGetPNG ( [handle hClipboard] );

Parameters

hClipboard

An optional handle specifying an open Clipboard Object. If a handle is not specified, or specified as NULL_HANDLE, the default clipboard is open. If a Clipboard Object is open, it is automatically selected, and, if no object is open, a new object is opened and then closed upon completion of the function.

Return Value

Returns a handle to a Data Object or a NULL_HANDLE on failure. Use the GetLastError function to retrieve error information. The handle should be released with the CloseHandle function.

Remarks

The data retrieved from the clipboard should be in PNG format. Some applications may present poor quality PNG data or claim PNG is available and then not render data to the clipboard.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic