TKE_Image

Opcode
ASCII i
Hexadecimal 69
Decimal 105

 

Operands

Point position, Byte format, [Byte name_length], [(name_length)xByte name], Long width, Long height, Byte compression, Variable data

position reference point for the image
format type of image data and options
name_length length of name string, present if Image_Is_Named bit set in format
name name associated with image, present if Image_Is_Named bit set in format
width number of pixel columns in image
height number of pixel wors in image
compression type of data compression used on image data
data image contents

 

Notes

An image is inserted into the currently open segment.

The only compression currently supported is "none" (0). Data is arranged per-pixel, starting at the upper-left and moving right, then moving down to successive rows. The amount of data per pixel is shown in the following table. Pixels in mapped images are indices into the appropriate color map. The order of bytes in non-mapped formats is as shown.

Format Description Bytes per pixel
0 Mapped 8 1
1 Mapped 16 2
2 RGB 3
3 RGBA 4
4 BGRA 4