Platoo FReport ComponentsTFRCustomDynamicImage

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).


TFRCustomDynamicImage - Events

Contents - TFRCustomDynamicImage - Properties - Methods

BeforeDraw
Event called before drawing

Delphi 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).


TFRCustomDynamicImage - Methods

Contents - TFRCustomDynamicImage - Properties - Events

~TFRCustomDynamicImage
Destructor

C++ declaration
__fastcall virtual ~TFRCustomDynamicImage(void)

Create
Delphi declaration
constructor Create(AOwner: TComponent);
Destroy
Delphi declaration
destructor Destroy;
HandleDrawRequest
Drawing request handler

Delphi 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.

TFRCustomDynamicImage
Constructor

C++ declaration
__fastcall virtual TFRCustomDynamicImage(Classes::TComponent *AOwner)


TFRCustomDynamicImage - Properties

Contents - TFRCustomDynamicImage - Methods - Events

JPEGQuality
JPEG-encoding quality %

Delphi 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" .

PLPicture
Internal picture object for drawing and image streaming

Delphi 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.