Class TPHXGraphicFiler

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXGraphicFiler = class(TObject)

Description

Class for loading and saving graphics images

Hierarchy

  • TObject
  • TPHXGraphicFiler

Overview

Methods

Protected procedure LoadGraphic(Stream: TStream; const Name: String; out Graphic: TPHXGraphic); virtual;
Protected procedure SaveGraphic(Stream: TStream; const Name: String; const Graphic: TPHXGraphic); virtual;
Public constructor Create;
Public procedure RegisterFileFormats; virtual; abstract;
Public function SupportsReading(const Extension: String): Boolean; virtual;
Public function SupportsWriting(const Extension: String): Boolean; virtual;
Public procedure LoadFromFile(const FileName: String; out Graphic: TPHXGraphic);
Public procedure LoadFromStream(Stream: TStream; const Name: String; out Graphic: TPHXGraphic);
Public procedure SaveToFile(const FileName: String; const Graphic: TPHXGraphic); overload;
Public procedure SaveToStream(Stream: TStream; const Name: String; const Graphic: TPHXGraphic); overload;
Public class procedure RegisterFileFormat(Filer: TPHXGraphicFiler; const Extension: String; const Name: String = '');

Description

Methods

Protected procedure LoadGraphic(Stream: TStream; const Name: String; out Graphic: TPHXGraphic); virtual;

Read a graphic from a stream

Protected procedure SaveGraphic(Stream: TStream; const Name: String; const Graphic: TPHXGraphic); virtual;

Write a graphic image to a stream

Public constructor Create;
 
Public procedure RegisterFileFormats; virtual; abstract;

Register the supported file formats for this graphic filer

Public function SupportsReading(const Extension: String): Boolean; virtual;

Returns if this filer supports reading of a format

Public function SupportsWriting(const Extension: String): Boolean; virtual;

Returns if this filer supports writing of a format

Public procedure LoadFromFile(const FileName: String; out Graphic: TPHXGraphic);

Load a graphic from a file

Public procedure LoadFromStream(Stream: TStream; const Name: String; out Graphic: TPHXGraphic);

Load a graphic from a stream

Public procedure SaveToFile(const FileName: String; const Graphic: TPHXGraphic); overload;

Save a graphic to a file

Public procedure SaveToStream(Stream: TStream; const Name: String; const Graphic: TPHXGraphic); overload;

Save a graphic to a stream

Public class procedure RegisterFileFormat(Filer: TPHXGraphicFiler; const Extension: String; const Name: String = '');

Register a graphic file format


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:37