Mira Data Types


The data type describes the format of the value stored in a number or string. This may be a numeric value such as an integer or floating point number, or a string value for more complex quantities such as RGB color data. All Mira data types are listed in the table below.

Mira Data Type Definitions

Name

Bytes/Pixel

Mathematical Description

byte

1

8 bit unsigned integer with range 0 to 255.

short

2

16 bit signed integer with range -32768 to 32767.

ushort

2

16 bit unsigned integer with range 0 to 65535.

int

4

32 bit signed integer. The previous name "long" is deprecated and should no longer be used.

float

4

32 bit IEEE floating point.

double

8

64 bit IEEE floating point.

rgb

4

24 bit color with each color channel containing a byte value in the range 0 to 255. Each pixel has 32 bits (4 bytes) consisting of 3, 8-bit channels plus one unused 8-bit channel.

urgb

8

48 bit color with each color channel containing a 16 bit unsigned integer value in the range 0 to 65535. Each pixel has 64 bits (8 bytes) consisting of 3, 16-bit channels plus one unused 16-bit channel.

lrgb

16

96 bit color with each color channel containing a 32 bit integer value. Each pixel has 128 bits (16 bytes) consisting of 3, 32-bit channels plus one unused 32-bit channel.

frgb

16

96 bit real color with each color channel containing a 32 bit floating point value. Each pixel has 128 bits (16 bytes) consisting of 3, 32-bit channels plus one unused 32-bit channel.

drgb

32

192 bit real color with each color channel containing a 64 bit floating point ("double") value. Each pixel has 256 bits (32 bytes) consisting of 3, 64-bit channels plus one unused 64-bit channel.

Related Topics

CImage class

CImage:Datatype

CImage:SetDatatype

DatatypeToStr

CFile:Read

CFile:Write