Contents - Events - Methods - Properties
Base class for dynamic (runtime-created) images
Description
Contains a picture ( TPLPicture ) object for runtime drawing and/or loading from file or from stream.Sends t he image to t he client as a stream (converted to JPEG).
Contents - TFRCustomDynamicImage - Properties - Methods
BeforeDraw
Event called before drawingDelphi declaration
property BeforeDraw: TFRSimpleEvent read FBeforeDraw write FBeforeDraw;
C++ declaration
__property TFRSimpleEvent BeforeDraw={ read=FBeforeDraw, write=FBeforeDraw }
Description
At this point an empty picture object (property PLPicture) is created, default size in pixels is Width x Height.If you want load a picture from file or from stream, this is t he right place (warning: default contents and size will b e overwritten).
Contents - TFRCustomDynamicImage - Properties - Events
~TFRCustomDynamicImage
DestructorCreateC++ declaration
__fastcall virtual ~TFRCustomDynamicImage(void)
Delphi declarationDestroy
constructor Create(AOwner: TComponent);
Delphi declarationHandleDrawRequest
destructor Destroy;
Drawing request handlerTFRCustomDynamicImageDelphi declaration
function HandleDrawRequest: Boolean;
C++ declaration
virtual bool __fastcall HandleDrawRequest(void)
Description
Creates a new PLPicture object.Calls BeforeDraw event (and other drawing events in inherited classes).
Creates a new memorystream and saves t he PLPicture's content to stream as JPEG.
ConstructorC++ declaration
__fastcall virtual TFRCustomDynamicImage(Classes::TComponent *AOwner)
Contents - TFRCustomDynamicImage - Methods - Events
JPEGQuality
JPEG-encoding quality %PLPictureDelphi declaration
property JPEGQuality: Integer read FJPEGQuality write FJPEGQuality;
C++ declaration
__property int JPEGQuality={ read=FJPEGQuality, write=FJPEGQuality, nodefault }
Description
0...100, 0 means " default quality" .
Internal picture object for drawing and image streamingDelphi declaration
property PLPicture: TPLPicture read FPLPicture;
C++ declaration
__property Plpicture::TPLPicture *PLPicture={ read=FPLPicture, nodefault }
Description
Picture will b e encoded to JPEG before it is sent to t he client.