Class TPaintDotNetFile

Unit

Declaration

type TPaintDotNetFile = class(TBGRACustomLayeredBitmap)

Description

Layered image reader for Paint.NET

A Paint.NET image consists in three parts :

The class TPaintDotNetFile do not read the Xml header. ComputeFlatImage builds the resulting image by using blending operations to merge layers.

Hierarchy

Overview

Methods

Public constructor Create; override;
Public function GetLayerBitmapCopy(layer: integer): TBGRABitmap; override;
Public function ToString: ansistring; override;
Protected function GetBlendOperation(Layer: integer): TBlendOperation; override;
Protected function GetHeight: integer; override;
Protected function GetLayerName(layer: integer): string; override;
Protected function GetLayerOpacity(layer: integer): byte; override;
Protected function GetLayerVisible(layer: integer): boolean; override;
Protected function GetNbLayers: integer; override;
Protected function GetWidth: integer; override;
Public procedure Clear; override;
Public procedure LoadFromFile(const filenameUTF8: string); override;
Public procedure LoadFromStream(stream: TStream); override;
Protected procedure InternalLoadFromStream(stream: TStream);

Description

Methods

Public constructor Create; override;

This item has no description. Showing description inherited from TGraphic.Create.

Create an empty instance

Public function GetLayerBitmapCopy(layer: integer): TBGRABitmap; override;

This item has no description.

Public function ToString: ansistring; override;

This item has no description.

Protected function GetBlendOperation(Layer: integer): TBlendOperation; override;

This item has no description.

Protected function GetHeight: integer; override;

This item has no description. Showing description inherited from TGraphic.GetHeight.

Retrieves height

Protected function GetLayerName(layer: integer): string; override;

This item has no description.

Protected function GetLayerOpacity(layer: integer): byte; override;

This item has no description.

Protected function GetLayerVisible(layer: integer): boolean; override;

This item has no description.

Protected function GetNbLayers: integer; override;

This item has no description.

Protected function GetWidth: integer; override;

This item has no description. Showing description inherited from TGraphic.GetWidth.

Retrieves width

Public procedure Clear; override;

This item has no description. Showing description inherited from TGraphic.Clear.

Clears the content

Public procedure LoadFromFile(const filenameUTF8: string); override;

This item has no description. Showing description inherited from TGraphic.LoadFromFile.

Load the content from a given file

Public procedure LoadFromStream(stream: TStream); override;

This item has no description. Showing description inherited from TGraphic.LoadFromStream.

Load the content from a given stream

Protected procedure InternalLoadFromStream(stream: TStream);

This item has no description.