Vcl.AxCtrls.SetOlePicture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetOlePicture(Picture: TPicture; OlePicture: IPictureDisp);

C++

extern DELPHI_PACKAGE void __fastcall SetOlePicture(Vcl::Graphics::TPicture* Picture, _di_IPictureDisp OlePicture);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls Vcl.AxCtrls

Description

Connects an OLE picture object to a TPicture object, and copies the properties of the OLE picture object to the TPicture.

OLE conventions implement pictures as automation objects that contain the properties of the picture. This routine associates an OLE picture object (the OlePicture parameter) with a native VCL picture (the Picture parameter), allowing the picture to be accessed by both OLE programs and VCL programs. The TPicture object is initialized to have the same properties as OlePicture.

Call this method when you implement an automation method that takes an OLE picture as a parameter, and which needs to pass the picture along as a native TPicture object.

See Also