Sign in Join
FPDoc Onlineexperiment

TGraphic.LoadFromMimeStream procedure

Member of TGraphicpublicIn unit Graphics

Loads the from the specified stream for the given MIME type.

Declaration

pascal
procedure LoadFromMimeStream(AStream: TStream; const AMimeType: string)
 ; virtual

Arguments

AStream

Stream with the content loaded in the method.

AMimeType

MIME type representing the stream content.

Description

LoadFromMimeStream reads graphic data from a stream for the given MIME type. LoadFromMimeStream compares the value in AMimeType to the value in the MimeType property. When the values are the same, the LoadFromStream method is called the load the image data for the graphic from the stream in AStream.

In TGraphic, an EInvalidGraphic is raised when AMimeType contains any value other than an empty string ('').

Must be overridden in a descendent class to provide support for a MIME type representing a specific image format.

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