Class TCustomCanvasImage

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomCanvasImage = class abstract(TCustomCanvasParent)

Description

Abstract image that can be rendered with canvas. This provides methods that are called by canvas to obtain minimal information about textures and regions.

Hierarchy

Overview

Methods

Protected function GetRegion(const Index: Integer): TIntRectList.PItem; virtual; abstract;
Protected function GetTexture(const Index: Integer): TCustomBaseTexture; virtual; abstract;
Protected function GetTextureCount: Integer; virtual; abstract;

Description

Methods

Protected function GetRegion(const Index: Integer): TIntRectList.PItem; virtual; abstract;

Provides access to information about individual regions in the image, including texture number and region coordinates on such texture. These regions are also called "patterns" or "tiles" in different media.

Protected function GetTexture(const Index: Integer): TCustomBaseTexture; virtual; abstract;

Provides access to individual textures through the specified index. If the index is outside of valid range, this should return Nil.

Protected function GetTextureCount: Integer; virtual; abstract;

Returns the number of textures available in the image.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.