RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TJPEGImage.LoadFromClipboardFormat Method

Reads in a jpeg image from the Clipboard into the jpeg image object.

Pascal
procedure LoadFromClipboardFormat(AFormat: Word; AData: THandle; APalette: HPALETTE); override;
C++
virtual __fastcall LoadFromClipboardFormat(Word AFormat, THandle AData, HPALETTE APalette);

LoadFromClipboardFormat is called if the jpeg image is registered with the TPicture object using the RegisterClipboardFormat method. LoadFromClipboardFormat can also recognize, and supports, a bitmap format on the Clipboard. 

LoadFromClipboardFormat replaces the current image with the data pointed to by the AData parameter. The palette for the jpeg image is specified by the APalette parameter. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!