| Home | Download | Screen shots | Discussion | Documentation |
|---|
Collaboration diagram for openvrml::img:

Public Member Functions | |
| img () | |
| Construct. | |
| ~img () | |
| Destroy. | |
| bool | set_url (const char *url, const doc2 *relative=0) |
| bool | try_urls (const std::vector< std::string > &urls, const doc2 *relative=0) |
| const char * | url () const |
| The URI of the currently loaded image. | |
| size_t | w () const |
| Image width. | |
| size_t | h () const |
| Image height. | |
| size_t | nc () const |
| Number of components. | |
| size_t | nframes () const |
| Number of frames. | |
| unsigned char * | pixels () const |
| Pixel data. | |
| unsigned char * | pixels (size_t frame) const |
| The pixel data for a frrame of the currently loaded image. | |
| void | resize (size_t w, size_t h) |
| Resize the image. | |
Private Attributes | |
| doc * | url_ |
| Resource. | |
| size_t | w_ |
| Image width. | |
| size_t | h_ |
| Image height. | |
| size_t | nc_ |
| Number of components. | |
| size_t | nframes_ |
| Number of frames. | |
| unsigned char * | pixels_ |
| Pixel data. | |
| unsigned char ** | frame_ |
| Frame data for time-dependent images. | |
|
|
Image height.
|
|
|
Number of components.
|
|
|
Number of frames.
|
|
|
The pixel data for a frrame of the currently loaded image.
|
|
|
Pixel data.
|
|
||||||||||||
|
Resize the image. This method simply resets the width and height attributes. It does not rescale the image or even reallocate the pixel data.
|
|
|
The URI of the currently loaded image.
|
|
|
Image width.
|