WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions | Protected Attributes
ImageBase Class Reference
Inheritance diagram for ImageBase:
ErrorBase ColorImage MonoImage HSLImage RGBImage BinaryImage

List of all members.

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

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:
typeThe type of image to create
ImageBase::~ImageBase ( ) [virtual]

Frees memory associated with an ImageBase. Destructor frees the imaq image allocated with the class.


Member Function Documentation

int ImageBase::GetHeight ( )

Gets the height of an image.

Returns:
The height of the image in pixels.
Image * ImageBase::GetImaqImage ( )

Access the internal IMAQ Image data structure.

Returns:
A pointer to the internal IMAQ Image data structure.
int ImageBase::GetWidth ( )

Gets the width of an image.

Returns:
The width of the image in pixels.
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:
fileNameThe name of the file to write

Reimplemented in BinaryImage.


The documentation for this class was generated from the following files:
 All Classes Functions Variables