|
GrafX2 2.9.3227
The ultimate 256-color painting program
|
Include dependency graph for colorred.c:Functions | |
| CT_Tree * | CT_new () |
| void | CT_set (CT_Tree *colorTree, byte Rmin, byte Gmin, byte Bmin, byte Rmax, byte Gmax, byte Bmax, byte index) |
| insert a node in the color tree More... | |
| byte | CT_get (CT_Tree *tree, byte r, byte g, byte b) |
| find the leaf that also contains (rgb) More... | |
| void | CT_delete (CT_Tree *tree) |
| CT_Tree * CT_new | ( | ) |
Referenced by Optimize_palette().
| void CT_set | ( | CT_Tree * | colorTree, |
| byte | Rmin, | ||
| byte | Gmin, | ||
| byte | Bmin, | ||
| byte | Rmax, | ||
| byte | Gmax, | ||
| byte | Bmax, | ||
| byte | index | ||
| ) |
insert a node in the color tree
References CT_Node::Bmax, CT_Node::Bmin, CT_Node::children, CT_Node::Gmax, CT_Node::Gmin, CT_Tree::nodecount, CT_Tree::nodes, CT_Node::Rmax, and CT_Node::Rmin.
Referenced by CT_set_trad().
find the leaf that also contains (rgb)
pre condition: node contains (rgb)
References CT_Node::Bmax, CT_Node::Bmin, CT_Node::children, CT_Node::Gmax, CT_Node::Gmin, CT_Tree::nodes, CT_Node::Rmax, and CT_Node::Rmin.
Referenced by Convert_24b_bitmap_to_256_Floyd_Steinberg(), and Convert_24b_bitmap_to_256_nearest_neighbor().
| void CT_delete | ( | CT_Tree * | tree | ) |
Referenced by Convert_24b_bitmap_to_256(), and Optimize_palette().