The C++ Template Image Processing Library. |
[Introduction]- [News]- [Download]- [Screenshots]- [Tutorial]- [Forums]- [Reference]- [SourceForge Repository ]

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

# CImgInstanceException Struct Reference

The CImgInstanceException class is used to throw an exception related to a non suitable instance encountered in a library function call. More...

Inheritance diagram for CImgInstanceException:

List of all members.

## Detailed Description

The CImgInstanceException class is used to throw an exception related to a non suitable instance encountered in a library function call.

This class will be thrown when trying to call a class function from an instance which is empty, or badly defined. Typically, this exception occurs when using empty images :

         CImg<float> img; // define an empty image
         img.blur(10);    // trying to blur an empty image will generate a CImgInstanceException.

See also:
  CImgException, CImgArgumentException, CImgIOException and CImgDisplayException.

Definition at line 728 of file CImg.h.