File Formats
[Image Storage]
Detailed Description
- See im.h
- "BMP" - Windows Device Independent Bitmap
- "PCX" - ZSoft Picture
- "GIF" - Graphics Interchange Format
- "TIFF" - Tagged Image File Format
- "RAS" - Sun Raster File
- "SGI" - Silicon Graphics Image File Format
- "JPEG" - JPEG File Interchange Format
- "LED" - IUP image in LED
- "TGA" - Truevision Targa
- "RAW" - RAW File
- "PNM" - Netpbm Portable Image Map
- "ICO" - Windows Icon
- "PNG" - Portable Network Graphic Format
- "JP2" - JPEG-2000 JP2 File Format
- "AVI" - Windows Audio-Video Interleaved RIFF
- "WMV" - Windows Media Video Format
- "NONE" - No Compression.
- "RLE" - Run Lenght Encoding.
- "LZW" - Lempel, Ziff and Welsh.
- "JPEG" - Join Photographics Experts Group.
- "DEFLATE" - LZ77 variation (ZIP)
Modules | |
| TIFF - Tagged Image File Format | |
| JPEG - JPEG File Interchange Format | |
| PNG - Portable Network Graphic Format | |
| GIF - Graphics Interchange Format | |
| BMP - Windows Device Independent Bitmap | |
| RAS - Sun Raster File | |
| LED - IUP image in LED | |
| SGI - Silicon Graphics Image File Format | |
| PCX - ZSoft Picture | |
| TGA - Truevision Graphics Adapter File | |
| PNM - Netpbm Portable Image Map | |
| ICO - Windows Icon | |
| KRN - IM Kernel File Format | |
| AVI - Windows Audio-Video Interleaved RIFF | |
| JP2 - JPEG-2000 JP2 File Format | |
| RAW - RAW File | |
| WMV - Windows Media Video Format | |
Functions | |
| void | imFormatList (char **format_list, int *format_count) |
| int | imFormatInfo (const char *format, char *desc, char *ext, int *can_sequence) |
| int | imFormatCompressions (const char *format, char **comp, int *comp_count, int color_mode, int data_type) |
| int | imFormatCanWriteImage (const char *format, const char *compression, int color_mode, int data_type) |
Function Documentation
|
||||||||||||
|
Returns a list of the registered formats.
im.FormatList() -> format_list: table of strings [in Lua 5] |
|
||||||||||||||||||||
|
Returns the format description.
im.FormatInfo(format: string) -> error: number, desc: string, ext: string, can_sequence: boolean [in Lua 5] |
|
||||||||||||||||||||||||
|
Returns the format compressions.
im.FormatCompressions(format: string, [color_mode: number], [data_type: number]) -> error: number, comp: table of strings [in Lua 5] |
|
||||||||||||||||||||
|
Checks if the format suport the given image class at the given compression.
im.FormatCanWriteImage(format: string, compression: string, color_mode: number, data_type: number) -> can_write: boolean [in Lua 5] |