You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Picture object:
Cvo_Picture
Cvo_Window
#include
<Cvo/Picture.h++>
new
Cvo_Picture ( char *resource_name,
{ Cvo_Object *parent | Display *display },
char *image_path )
new
Cvo_Picture ( char *resource_name,
{ Cvo_Object *parent | Display *display },
int width,
int height,
int depth,
CARD8 *data )
new
Cvo_Picture ( char *resource_name,
{ Cvo_Object *parent | Display *display },
int width,
int height,
int depth,
char **colors,
char **pixels )
The Cvo_Picture object simply creates a window which is used to
display a picture. The picture may either be loaded from a file named
by image_path (this is loaded via the Cvo_Image object) or
direct data. In the latter case, a Cvo_Image is created of width
x height pixels of the given depth. There are two direct
data formats supported, XBitmap
and XPM
.
If an XBitmap
is to be used, the width, height, depth
and a pointer to the bitmap data is passed. If the XPM
format
is used, the width, height, depth, and pointers to arrays
of colors and pixels is passed. Please see the Cvo_Image
object for more detail.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
int Loaded (
)
This function returns zero if no image is loaded (i.e. image_path was invalid) or a non-zero value if an image has been loaded.
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.