#include <vvxtrAPI.h>
Public Member Functions | |
| vvxtrImage () | |
| Constructor. | |
| void | SetWidth (unsigned int width) |
| Set the image width. | |
| void | SetHeight (unsigned int height) |
| Set the image height. | |
| void | SetBytesPerLine (unsigned int bpl) |
| Set the bytes per line of the image. | |
| void | SetXDPI (unsigned short int xdpi) |
| Set the horizontal DPI of the image. | |
| void | SetYDPI (unsigned short int ydpi) |
| Set the vertical DPI of the image. | |
| void | SetBitsPerPixel (unsigned short int bpp) |
| Set the bits per pixel of the image. | |
| void | SetBitsPerSample (unsigned short int bps) |
| Set the bits per sample of the image. | |
| void | SetData (unsigned char *imgData) |
| Set the location of the bitmap data. | |
| unsigned int | GetWidth () |
| Get the current image width. | |
| unsigned int | GetHeight () |
| Get the current image height. | |
| unsigned int | GetBytesPerLine () |
| Get the number of bytes per line. | |
| unsigned short int | GetXDPI () |
| Get the horizontal bit density. | |
| unsigned short int | GetYDPI () |
| Get the vertical dot density. | |
| unsigned short int | GetBitsPerPixel () |
| Get the number of bits per pixel. | |
| unsigned short int | GetBitsPerSample () |
| Get the bits per sample of the image. | |
| unsigned char * | GetData () |
| Get a pointer to the raw data. | |
| const unsigned char * | GetData () const |
| int | GetImageSize () const |
| Get the total image size. | |
| int | GetTotalSize () const |
| Get the total size, including the size of this structure. | |
Static Public Member Functions | |
| vvxtrImage * | FromRaw (void *rawbuffer) |
| A vvxtrImage factory that creates a vvxtrImage instance in-place in a raw data buffer. | |
Protected Attributes | |
| int | size |
| Size of the image header. | |
| unsigned int | dwImgWidth |
| image width in pixels | |
| unsigned int | dwImgHeight |
| image height in pixels | |
| unsigned int | dwBytesPerLine |
| number of data bytes per X scanline | |
| unsigned short int | wXDPI |
| resolution in pixels of X scanline data | |
| unsigned short int | wYDPI |
| resolution in pixels of Y scanline data | |
| unsigned short int | chBitsPerPixel |
| image depth (1, 4, 8, 24) | |
| unsigned short int | wBitsPerSample |
| image bits per sample (1, 8) | |
| unsigned char * | data |
| image data | |
The image header sent along with memory resident bitmaps.
The image needs to be in a chunky (i.e. not planar) form, at 1, 8, or 24 bits per pixel. 8-bit is for grayscale only.
As dictated by general conventions, 1-bit black and white image data should have a photometric interpretation of min-is-white, while 8 and 24-bit image data should have a photometric interpretation of min-is-black.
Any line padding in the image data should be handled by setting the bytes per line correctly.
The destructor does not delete the data, as this class does not own the data.
Definition at line 1280 of file vvxtrAPI.h.
|
|
Constructor.
Definition at line 1287 of file vvxtrAPI.h. References size. |
|
|
A vvxtrImage factory that creates a vvxtrImage instance in-place in a raw data buffer. Used to encapsulate a vvxtrImage with the raw bitmap data in one contiguous buffer, which could be used, for example, to transmit the data in one block. This function is primarily for internal use; if its purpose is not clear to you, then you probably don't need to use it.
Definition at line 1424 of file vvxtrAPI.h. References SetData(). Referenced by outputImg(). |
|
|
Get the number of bits per pixel.
Definition at line 1379 of file vvxtrAPI.h. References chBitsPerPixel. |
|
|
Get the bits per sample of the image.
Definition at line 1386 of file vvxtrAPI.h. References wBitsPerSample. |
|
|
Get the number of bytes per line.
Definition at line 1361 of file vvxtrAPI.h. References dwBytesPerLine. |
|
|
Get a pointer to the raw data.
Definition at line 1393 of file vvxtrAPI.h. References data. |
|
|
Get the current image height.
Definition at line 1355 of file vvxtrAPI.h. References dwImgHeight. |
|
|
Get the total image size.
Definition at line 1401 of file vvxtrAPI.h. References dwBytesPerLine, and dwImgHeight. Referenced by GetTotalSize(). |
|
|
Get the total size, including the size of this structure. Used to allocate a buffer that includes this structure embedded at the start.
Definition at line 1408 of file vvxtrAPI.h. References GetImageSize(). |
|
|
Get the current image width.
Definition at line 1349 of file vvxtrAPI.h. References dwImgWidth. |
|
|
Get the horizontal bit density.
Definition at line 1367 of file vvxtrAPI.h. References wXDPI. |
|
|
Get the vertical dot density.
Definition at line 1373 of file vvxtrAPI.h. References wYDPI. |
|
|
Set the bits per pixel of the image.
Definition at line 1328 of file vvxtrAPI.h. References chBitsPerPixel. |
|
|
Set the bits per sample of the image.
Definition at line 1336 of file vvxtrAPI.h. References wBitsPerSample. |
|
|
Set the bytes per line of the image.
Definition at line 1308 of file vvxtrAPI.h. References dwBytesPerLine. |
|
|
Set the location of the bitmap data.
Definition at line 1342 of file vvxtrAPI.h. References data. Referenced by FromRaw(). |
|
|
Set the image height.
Definition at line 1301 of file vvxtrAPI.h. References dwImgHeight. |
|
|
Set the image width.
Definition at line 1295 of file vvxtrAPI.h. References dwImgWidth. |
|
|
Set the horizontal DPI of the image.
Definition at line 1315 of file vvxtrAPI.h. References wXDPI. |
|
|
Set the vertical DPI of the image.
Definition at line 1322 of file vvxtrAPI.h. References wYDPI. |
1.3.2