=============
TKE_Thumbnail
=============

Opcode
======

.. csv-table::

	"ASCII", "^T"
	"Hexadecimal", "14"
	"Decimal", "20"


Operands
========

Byte format, Byte width, Byte height, Variable data 

.. csv-table::

	"format", "type of thumbnail data"
	"width", "unsigned number of pixel columns in image, a value of 0 is used to represent 256"
	"height", "unsigned number of pixel rows in image, a value of 0 is used to represent 256"
	"data", "thumbnail image contents"
	
	
Notes
=====

A simple image normally representing the remaining data.

The thumbnail should normally be placed early in the file to simplify code written to extract it; so after the header TK_Comment and possibly any ``TK_File_Info``, but before any ``TK_Start_Compression``.

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.

.. csv-table::

	"Format", "Description", "Bytes per pixel"
	"0", "RGB", "3"
	"1", "RGBA", "4"
