C++ Template Image Processing Library.    

[Introduction]- [News]- [Download]- [Screenshots]- [Tutorial]- [Forums-Eng]- [Forums-Fr]- [Reference]- [SourceForge Repository ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

CImgArgumentException Struct Reference

The CImgArgumentException class is used to throw an exception related to invalid arguments encountered in a library function call. More...

Inheritance diagram for CImgArgumentException:

CImgException List of all members.

Detailed Description

The CImgArgumentException class is used to throw an exception related to invalid arguments encountered in a library function call.

This class will be thrown when one passes one or several invalid arguments to a library function. This may happen for instance in the following case :

     CImg<float> img(100,100); // define a 100x100 scalar image with float pixels
     img.get_channel(1);       // trying to retrieve the vector channel v=1, will generate a CImgArgumentException.
As the image img is scalar, it has only one vector channel (img.dim=1), and one cannot retrieve the channel 1, (only the channel 0).
See also:
CImgException, CImgInstanceException, CImgIOException and CImgDisplayException.

Definition at line 649 of file CImg.h.


Generated on Mon Jul 4 09:51:36 2005 for The CImg Library by  doxygen 1.3.9