Sign in Join
FPDoc Onlineexperiment

TOnDBImageRead procedure type

In unit DBCtrls

Specifies an event handler signalled to identify the graphic type for a database image.

Declaration

pascal
TOnDBImageRead = procedure(Sender: TObject; S: TStream; 
 var GraphExt: string) of object

Arguments

Sender

Object (TDBImage) instance for the event notification.

S

Stream instance with the image data examined in the event handler.

GraphExt

Returns the file extension used for the graphic type, or an empty string when not determined.

Description

TOnDBImageRead is the type used for the OnDBImageRead property in TDBImage. It provides a mechanism for identifying the graphic class needed to load image content in the specified stream. In general, it is used when image data in S contains an additional header that must be processed / handled prior to reading the raw image data.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.