The 1bit JControl Image File Format (JCIF) ------------------------------------------ :=
------------
:= "JCIF" := 0x01 (16bit) := 0x01 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) ------------ := {}+ := {}*width := pixels are stored in a byte, one upon the other, LSB first (8bit each) Thus, image pixeldata is always stored as a multiple of eight*. Example for an image: (8x10 pixels) ..XXXX.. .X....X. X......X X.X..X.X X......X X......X X.XXXX.X X..XX..X .X....X. ..XXXX.. LSB . . X X X X . . . X . . . . X . X . . . . . . X X . X . . X . X X . . . . . . X X . . . . . . X X . X X X X . X MSB X . . X X . . X FC 02 49 C1 C1 49 02 FC LSB . X . . . . X . . . X X X X . . 00 01 02 02 02 02 01 00 The pixel data will be represented as FC0249C1C14902FC0001020202020100 The whole image will be store as 4A 43 49 46 00 01 00 01 00 08 00 0A FC 02 49 C1 C1 49 02 FC 00 01 02 02 02 02 01 00 **************************************************************************************** The 4bit JControl Image File Format (JCIF) ------------------------------------------ :=
[] ------------
:= "JCIF" := 0x00 (16bit) := 0x04 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) := the foreground color index in the palette (4bit) := the background color index in the palette (4bit) := a set of flags as follows (8bit) COMPRESS 0x01: image is compressed NOPALETTE 0x02: if set, no palette is included, standard windows palette must be used TRANSPARENT 0x08: background color that was specified above may not be painted FOREGROUND 0x10: if not set, the image has no special foreground color, the index at will be ignored. BACKGROUND 0x20: if not set, the image has no special background color, the index at will be ignored. ------------ The palette is an array of 48 bytes, i.e. three bytes for every color := {}*16 := := the red part of the color (8bit) := the green part of the color (8bit) := the blue part of the color (8bit) Note that a palette may only be defined if bit 2 in is not set. ------------ := | := {}+ := := the palette index for the pixel color, 0-15 (4bit) If the image's width is an odd number of pixels, each row will be filled up by 4 bits to complete the last byte, though they will be ignored at painting. := {}+ := number of following pixels with the same color 1=1, 2=2, ..., 15=15, 0=16 (4bit) := the palette index for the pixel color, 0-15 (4bit) NOTE: This is not row-overlapping, i.e. each row starts with a new ! **************************************************************************************** The 8bit JControl Image File Format (JCIF) ------------------------------------------ :=
------------
:= "JCIF" := 0x00 (16bit) := 0x08 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) ------------ := {} length times := number of colors in the palette (8bit) := 0x00 0x00 0x00 (24 bit) := := the alpha value of the color (8bit) := the red part of the color (8bit) := the green part of the color (8bit) := the blue part of the color (8bit) ------------ := := {}+ := | := {}+ := number of the following pixels (between 1 and 128) + 0x7F [128 = 1 px, 129 = 2 px, ..., 255 = 128 px] := := number of the following pixels of the same color (between 1 and 128) - 1 [0 = 1 px, 1 = 2 px, ..., 127 = 128 px] := palette index or true-color value NOTE: Compression like Targa Format NOTE: This is not row-overlapping, i.e. each row starts with a new ! **************************************************************************************** The 16bit JControl Image File Format (JCIF) ------------------------------------------ :=
------------
:= "JCIF" := 0x00 (16bit) := 0x10 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) ------------ := := the alpha bit (alpha or not alpha) (1bit) := the red part of the color (5bit) := the green part of the color (5bit) := the blue part of the color (5bit) 8bit := (5bit<<3)|(5bit>>2) ------------ := {}* (width x height) times **************************************************************************************** The 24bit JControl Image File Format (JCIF) ------------------------------------------ :=
------------
:= "JCIF" := 0x00 (16bit) := 0x18 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) ------------ := := the red part of the color (8bit) := the green part of the color (8bit) := the blue part of the color (8bit) ------------ := {}* (width x height) times **************************************************************************************** The 32bit JControl Image File Format (JCIF) ------------------------------------------ :=
------------
:= "JCIF" := 0x00 (16bit) := 0x20 (16bit) := image width in pixels (16bit) := image height in pixels (16bit) ------------ := := the alpha value (8bit) := the red part of the color (8bit) := the green part of the color (8bit) := the blue part of the color (8bit) ------------ := {}* (width x height) times ------------------------------------------------------- (c) Domologic Home Automation GmbH. All Rights Reserved.