Image class that support file reading/writing operations using auxiliary image library. Supported image formats:
More...
#include <Image_AlienPixMap.hxx>
Public Member Functions |
| Image_AlienPixMap () |
| Empty constructor.
|
virtual | ~Image_AlienPixMap () |
| Destructor.
|
bool | Load (const TCollection_AsciiString &theFileName) |
| Read image data from file.
|
bool | Save (const TCollection_AsciiString &theFileName) |
| Write image data to file using file extension to determine compression format.
|
virtual bool | InitTrash (ImgFormat thePixelFormat, const Standard_Size theSizeX, const Standard_Size theSizeY, const Standard_Size theSizeRowBytes=0) |
| Initialize image plane with required dimensions. thePixelFormat - if specified pixel format doesn't supported by image library than nearest supported will be used instead! theSizeRowBytes - may be ignored by this class and required alignemnt will be used instead!
|
virtual bool | InitCopy (const Image_PixMap &theCopy) |
| Initialize by copying data.
|
virtual void | Clear (ImgFormat thePixelFormat=ImgGray) |
| Method correctly deallocate internal buffer.
|
bool | AdjustGamma (const Standard_Real theGammaCorr) |
| Performs gamma correction on image. theGamma - gamma value to use; a value of 1.0 leaves the image alone.
|
Detailed Description
- *.bmp - bitmap image, lossless format without compression.
- *.ppm - PPM (Portable Pixmap Format), lossless format without compression.
- *.png - PNG (Portable Network Graphics) lossless format with compression.
- *.jpg, *.jpe, *.jpeg - JPEG/JIFF (Joint Photographic Experts Group) lossy format (compressed with quality losses). YUV color space used (automatically converted from/to RGB).
- *.tif, *.tiff - TIFF (Tagged Image File Format).
- *.tga - TGA (Truevision Targa Graphic), lossless format.
- *.gif - GIF (Graphical Interchange Format), lossy format. Color stored using pallete (up to 256 distinct colors).
- *.exr - OpenEXR high dynamic-range format (supports float pixel formats).
Constructor & Destructor Documentation
Image_AlienPixMap::Image_AlienPixMap |
( |
| ) |
|
virtual Image_AlienPixMap::~Image_AlienPixMap |
( |
| ) |
[virtual] |
Member Function Documentation
bool Image_AlienPixMap::AdjustGamma |
( |
const Standard_Real |
theGammaCorr | ) |
|
virtual void Image_AlienPixMap::Clear |
( |
ImgFormat |
thePixelFormat = ImgGray | ) |
[virtual] |
virtual bool Image_AlienPixMap::InitCopy |
( |
const Image_PixMap & |
theCopy | ) |
[virtual] |
The documentation for this class was generated from the following file: