RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebAdapt.TImageFieldGetImageEvent Type

TImageFieldGetImageEvent is the type for event handlers that supply a stream from which to read an image.

Pascal
TImageFieldGetImageEvent = procedure (Sender: TObject; Params: TStrings; var MimeType: string; var Image: TStream; var Owned: Boolean) of object;
C++
(Sender: TObject; Params: TStrings; var MimeType: string; var Image: TStream; var Owned: Boolean) ( TImageFieldGetImageEvent)();

TImageFieldGetImageEvent is the type for the OnGetImage event handler of an adapter field whose value is an image. This event handler lets you supply an image that is encoded using a MIME format. 

Sender is the adapter field object that represents an image. 

Params is a string list containing parameters that identify the desired image. This list contains strings of the form ParamName=ParamValue. 

MimeType is the MIME type/subtype string that indicates how the image is encoded. 

Image returns a stream from which the adapter field can read the image. 

Owned returns true if the adapter field is not responsible for freeing the stream that Image returns. Owned returns false if the adapter field should free the stream after reading the image. 

 

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