procedure SetOlePicture(Picture: TPicture; OlePicture: IPictureDisp);
SetOlePicture(TPicture Picture, IPictureDisp OlePicture);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!