ImageBase Class Reference


Public Member Functions | |
| ImageBase (ImageType type) | |
| virtual | ~ImageBase () |
| virtual void | Write (const char *fileName) |
| int | GetHeight () |
| int | GetWidth () |
| Image * | GetImaqImage () |
Protected Attributes | |
| Image * | m_imaqImage |
Detailed Description
Definition at line 16 of file ImageBase.h.
Constructor & Destructor Documentation
| ImageBase::ImageBase | ( | ImageType | type | ) |
Create a new instance of an ImageBase. Imagebase is the base of all the other image classes. The constructor creates any type of image and stores the pointer to it in the class.
- Parameters:
-
type The type of image to create
Definition at line 19 of file ImageBase.cpp.
| ImageBase::~ImageBase | ( | ) | [virtual] |
Frees memory associated with an ImageBase. Destructor frees the imaq image allocated with the class.
Definition at line 28 of file ImageBase.cpp.
Member Function Documentation
| int ImageBase::GetHeight | ( | ) |
Gets the height of an image.
- Returns:
- The height of the image in pixels.
Definition at line 50 of file ImageBase.cpp.
| Image * ImageBase::GetImaqImage | ( | ) |
Access the internal IMAQ Image data structure.
- Returns:
- A pointer to the internal IMAQ Image data structure.
Definition at line 73 of file ImageBase.cpp.
| int ImageBase::GetWidth | ( | ) |
Gets the width of an image.
- Returns:
- The width of the image in pixels.
Definition at line 61 of file ImageBase.cpp.
| void ImageBase::Write | ( | const char * | fileName | ) | [virtual] |
Writes an image to a file with the given filename. Write the image to a file in the flash on the cRIO.
- Parameters:
-
fileName The name of the file to write
Reimplemented in BinaryImage.
Definition at line 39 of file ImageBase.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:32 for WPILibC++ by
1.7.1