The TI.image format is used by TI-Nspire Lua to display images. It uses a bitmap based format with no compression at all. The image data consists out of a header section and a data section.
+
The TI.image format was (before apilevel 2.3 / OS 3.6) used by TI-Nspire Lua to display images. It uses a bitmap based format with no compression at all. The image data consists out of a header section and a data section.
==The header==
==The header==
Line 31:
Line 31:
Example, converting a RGB color:
Example, converting a RGB color:
−
R=255 → R = 31 (because each pixel can only have 5 bits per color)
+
R=255 → R = 31 (because each pixel can only have 5 bits per color)<br />
−
G=012 → G = 1
+
G=012 → G = 1<br />
−
B=123 → B = 15
+
B=123 → B = 15<br />
A= 1 (alpha flag, make that the pixel is visible)
A= 1 (alpha flag, make that the pixel is visible)
Line 61:
Line 61:
end
end
</source>
</source>
+
+
+
==External Links==
+
+
[[User:Adriweb|Adriweb]] made [http://www.youtube.com/watch?v=YQhrMHNkL3A a video] showing some direct manipulations of the TI-Image, in order to understand better the format in general.
+
+
[[User:jimbauwens|Jim Bauwens]] made [http://bwns.be/jim/tiviewer.html a image previewer], [http://bwns.be/jim/sprite.html a sprite creator] and a basic [http://bwns.be/jim/convert.py python image converter] (you need PythonMagick to run this)
+
+
These tools are not official and we'll update this as soon as we can / are allowed to.
+
+
In the official Nspire Lua toolkit, TI included in their software a feature that converts an image (with a common format such as jpg, png etc.) into a TI.Image format.