Type TGetImageEvent


Declaration

TGetImageEvent = procedure(Sender: TObject;

const SRC: string; var Stream: TMemoryStream) of Object;

Description

The TGetImageEvent type points to a method that handles image request events.

SenderThe THtmlViewer requesting the image.

SRCThe SRC= string recovered from the <img> tag. For TFrameBrowser, SRC has been expanded into a full URL including the protocol.

StreamThe TMemoryStream returned containing the image. The TMemoryStream may contain a bitmap, GIF, JPEG, or PNG image.

If a stream can't be supplied because of an error condition, etc., a Nil value should be returned.

See also:

OnImageRequest Event