RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IImageProducer.GetAdapterImage Method

Returns the object that is responsible for providing a specified image.

Pascal
function GetAdapterImage(const AComponentName: string; const ACaption: WideString): TObject;
C++
__fastcall TObject * GetAdapterImage(const AnsiString AComponentName, const BSTR ACaption);

GetAdapterImage returns the object that supplies an HREF for the specified image. That object can supply the HREF in one of two ways: 

It can implement the IWebImageHREF interface. 

It can be the object that produces the image in response to request messages. In this case, the adapter dispatcher's EncodeAdapterItemRequestAsHREF method generates the HREF to address this object. 

AComponentName is the name of the component that is requesting the image. GetAdapterImage can use this parameter to determine which of several objects is appropriate for supplying the image. 

ACaption is a text label that describes the desired image. GetAdapterImage can use this parameter to determine which of several objects is appropriate for supplying the image. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!