[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TGraphic.LoadFromStream

Reads graphic data from a stream.

Declaration

Source position: graphics.pp line 848

public procedure TGraphic.LoadFromStream(

  Stream: TStream

); virtual; abstract;

Arguments

Stream

  

TStream instance with the graphic data read in the method.

Description

LoadFromStream is an abstract virtual method used to load graphic data from the stream instance specified in Stream. It must be implemented in a descendent class to provide support for reading a specific image format from the stream.

LoadFromStream is used in the implementation of methods like: ReadData, LoadFromMimeStream, LoadFromResourceID, LoadFromResourceName, LoadFromLazarusResource, and LoadFromFile.

See also

TGraphic.LoadFromFile

  

Reads data for the graphic from a file.

TGraphic.LoadFromLazarusResource

  

Load the graphic data from a Lazarus Resource (.lrs) file.

TGraphic.LoadFromMimeStream

  

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

TGraphic.LoadFromResourceID

  

Load graphic data from a resource identified by the integer identifier ResID.

TGraphic.LoadFromResourceName

  

Loads a resource with the specified name from the given handle.

TGraphic.ReadData

  

ReadData - reads data for the Graphic from a stream.


Version 3.2 Generated 2024-02-25 Home