You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Picture object:

Class

Cvo_Picture

Base

Cvo_Window

Syntax

#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 )

Overview

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.

Member Functions

This object defines the following member functions in addition to those defined by its parent and ancestor objects.


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.