pfuSaveImage(3pf) OpenGL Performer 3.2.2 libpfutil Reference Pages
NAME
pfuCalcNormalizedChanXY, pfuSaveImage - Capture screen images.
FUNCTION SPECIFICATION
#include <Performer/pfutil.h>
void pfuCalcNormalizedChanXY(float* px, float* py, pfChannel* chan,
int xpos, int ypos);
int pfuSaveImage(char* name, int xorg, int yorg, int xsize, int ysize,
int alpha);
DESCRIPTIONpfuCalcNormalizedChanXY normalizes the window coordinates (xpos, ypos) to
chan's viewport and returns the resulting normalized position in (px,
py). The mapping is defined so that (px, py) range from (0, 0) to (1, 1)
when (xpos, ypos) is within chan's viewport.
pfuSaveImage saves the image rectangle that spans the window coordinates
(xorg, yorg) to (xorg + xsize, yorg + ysize) into an image file with the
name name. The alpha boolean argument specifies if only an RGB image
(alpha = 0) or a complete RGBA image (alpha = 1) is desired.
NOTES
The libpfutil source code, object code and documentation are provided as
unsupported software. Routines are subject to change in future releases.
SEE ALSO
pfChannel
Page 1