Crates.io | ici-files |
lib.rs | ici-files |
version | 0.4.0 |
source | src |
created_at | 2023-02-26 17:36:29.964421 |
updated_at | 2024-09-29 14:18:31.017288 |
description | Encode/decode ici files |
homepage | |
repository | https://github.com/emmabritton/ici-files |
max_upload_size | |
id | 795367 |
size | 122,118 |
ici-files = "0.4.0"
Encodes and decodes ICI files and JASC palettes
Designed to be used with Buffer Graphics, and in turn Pixel Graphics.
ICI Tools can be useful when working with ICI files
ICI Image editor is a MSPaint like program for ICI and ICA files
Indexed Color Images come in two forms:
Both may contain palette data in one of these forms:
The file doesn't contain any palette information. The Image
struct will default to a palette of the correct size but filled with transparency.
Use Image::with_palette
to set the palette or Image::set_color
to set a specific color.
The file has a palette ID between 0..=65535. The Image
struct will default to a palette of the correct size but filled with transparency.
Use Image::with_palette
to set the palette or Image::set_color
to set a specific color.
The file has a UTF-8 palette name, between 1..=255 bytes long. The Image
struct will default to a palette of the correct size but filled with transparency.
Use Image::with_palette
to set the palette or Image::set_color
to set a specific color.
The file contains a list of RGBA colors.
Single static image, max width and height is 255
Multi frame image, max width, height and frame count is 255. Also contains a frame rate as fractional seconds per frame. All frames must be the same size.
Stores either a static or animated image and provides a limited abstract interface
Default:
serde
Adds serialize and deserialize to some structs