In file libs/cs3d/common/imgtools.h:

class ImageColorInfo


Public Methods

const RGBPalEntry* get_color_table()
Return a table with all colors used in the image
int get_num_colors()
Returns the number of colors in the image.
ImageColorInfo(const RGBPixel* buf, long size)
Construct the table using an image stored in 'buf' of length 'size'
~ImageColorInfo()

Private Fields

RGBPalEntry* color_table
int num_colors

Private Methods

void calc_table(const RGBPixel* buf, long size)
Calculate the color table from the image stored in 'buf', length 'size'

Documentation

void calc_table(const RGBPixel* buf, long size)
Calculate the color table from the image stored in 'buf', length 'size'. If the number of colors specified in 'ncol' is greater than zero, that value is used.

int num_colors

RGBPalEntry* color_table

ImageColorInfo(const RGBPixel* buf, long size)
Construct the table using an image stored in 'buf' of length 'size'. If the number of colors (ncol) is given and is greater than 0, that value is used.

~ImageColorInfo()

const RGBPalEntry* get_color_table()
Return a table with all colors used in the image. This function returns a table with all colors that are used in the image, together with a count of the number of times each color has been used. The table is sorted, with the most frequently occuring colors first.

int get_num_colors()
Returns the number of colors in the image.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de