Record TImage

Hierarchy
Methods
Properties

Unit

Declaration

type TImage = record

Description

Image definition.

Overview

Fields

Format: string;
Source: string;
Trans: TCastleColorRGB;
Width: Cardinal;
Height: Cardinal;
Data: TData;

Description

Fields

Format: string;

Used for embedded images, in combination with a data child element. Valid values are file extensions like png, gif, jpg, bmp, etc. (since 0.9)

Source: string;

The reference to the tileset image file (Tiled supports most common image formats).

Trans: TCastleColorRGB;

Defines a specific color that is treated as transparent (example value: "#FF00FF" for magenta). Up until Tiled 0.12, this value is written out without a # but this is planned to change.

Width: Cardinal;

The image width in pixels (optional, used for tile index correction when the image changes).

Height: Cardinal;

The image height in pixels (optional).

Data: TData;

Embedded image data (since 0.9).


Generated by PasDoc 0.15.0.