Skip to main content

TdxCustomSmartImage.LoadFromClipboardFormat(Word,THandle,HPALETTE) Method

Loads an image from the clipboard.

Declaration

procedure LoadFromClipboardFormat(AFormat: Word; AData: THandle; APalette: HPALETTE); override;

Parameters

Name Type
AFormat Word
AData THandle
APalette HPALETTE

Remarks

Call this procedure to load an image to the Smart Image object from the registered clipboard format whose index is passed as the AFormat parameter. Pass the handle to loaded image data and its palette as the AData and APalette parameters, respectively.

The LoadFromClipboardFormat procedure works similarly to the TBitmap‘s LoadFromClipboardFormat procedure.

Note

Call the IsSupportClipboardFormat class function to identify if a required clipboard format is supported.

See Also