Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TGraphic.LoadFromStream

Reads graphic data from a stream.

Declaration

Source position: graphics.pp line 843

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, LoadFromTyphonResource, and LoadFromFile.

See also

TGraphic.LoadFromFile

  

Reads data for the graphic from a file.

TGraphic.LoadFromTyphonResource

  

Load the graphic data from a Typhon Resource (.ctrs) file.

TGraphic.LoadFromMimeStream

  

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

TGraphic.LoadFromResourceID

  

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



CT Web help

CodeTyphon Studio