RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterImageField.RenderAdapterImage Method

Responds to a request for an image file by providing a stream containing the image.

Pascal
procedure RenderAdapterImage(ARequest: IImageRequest; AResponse: IImageResponse); virtual;
C++
virtual __fastcall RenderAdapterImage(IImageRequest ARequest, IImageResponse AResponse);

RenderAdapterImage is called when the TAdapterDispatcher detects a request for an image from this adapter field. First, the access rights defined for this adapter field are validated against the rights of the end-user. If the end-user does not have rights to view this field, an exception is raised. If the OnGetImage event handler is not nil (Delphi) or NULL (C++), it is called to retrieve the image file as a stream. 

 

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