next up previous contents
Next: 6.3 Computing with VDisplay Up: 6. The VDisplay class Previous: 6.1 Constructors   Contents

6.2 Projection functions

A set of member functions of VDisplay provide read and write access to the fields in the display.

char *name();
VDisplayType &type();
matrix &mat();
float &YCW();
float &xCW();
float &yCW();
float &YCR();
float &YCG();
float &YCB();
int &Vrwr();
int &Vrwg();
int &Vrwb();
float &Y0R();
float &Y0G();
float &Y0B();
float &gammaR();
float &gammaG();
float &gammaB();
float &B();
float &P();

Where VDisplayType is defined as:

enum VDisplayType {
    BARCO,
    DUMB
};

And matrix is defined as:

typedef float matrix[3][3];

For a description of all the fields in a VIPS display profile, see the manual page for im_XYZ2RGB().



John Cupitt 2005-04-11