CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csImageTools Class Reference
[Graphics]

Some helper functions to deal with iImage objects. More...

#include <csgfx/imagetools.h>

List of all members.

Static Public Member Functions

size_t ComputeDataSize (iImage *img)
 Compute the size of an image data, in bytes.
int ClosestPaletteIndex (const csRGBpixel *Palette, const csRGBpixel &iColor, int palEntries=256)
 Return the closest palette index to given color.


Detailed Description

Some helper functions to deal with iImage objects.

Definition at line 37 of file imagetools.h.


Member Function Documentation

int csImageTools::ClosestPaletteIndex const csRGBpixel Palette,
const csRGBpixel iColor,
int  palEntries = 256
[static]
 

Return the closest palette index to given color.

size_t csImageTools::ComputeDataSize iImage img  )  [inline, static]
 

Compute the size of an image data, in bytes.

Definition at line 41 of file imagetools.h.

References iImage::GetDepth(), iImage::GetFormat(), iImage::GetHeight(), and iImage::GetWidth().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1