Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Image_AlienPixMap Class Reference

Image class that support file reading/writing operations using auxiliary image library. Notice that supported images format could be limited.

#include <Image_AlienPixMap.hxx>

Inheritance diagram for Image_AlienPixMap:
Inheritance graph
[legend]

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.

Constructor & Destructor Documentation


Member Function Documentation

virtual void Image_AlienPixMap::Clear ( ImgFormat  thePixelFormat = ImgGray) [virtual]

Reimplemented from Image_PixMap.

virtual bool Image_AlienPixMap::InitCopy ( const Image_PixMap theCopy) [virtual]

Reimplemented from Image_PixMap.

virtual bool Image_AlienPixMap::InitTrash ( ImgFormat  thePixelFormat,
const Standard_Size  theSizeX,
const Standard_Size  theSizeY,
const Standard_Size  theSizeRowBytes = 0 
) [virtual]

Reimplemented from Image_PixMap.


The documentation for this class was generated from the following file: