|
|
#include "nfbWinStr.h"void xxxReadImage ( BoxPtr pbox, void *image, unsigned int stride, DrawablePtr pDraw);
image
.
pbox
image
stride
image
.
Pixels in the destination are packed
to different boundaries based on the depth of the window.
For depths less than 8,
the pixels are packed one per byte,
except for monochrome drawables,
which are packed 1 bit per pixel.
For depths greater than 8 bits,
pixels are packed one per 32-bit word.
pDraw
Unlike
DrawImage(D3nfb),
this routine does not require the hardware
to deal with a planemask or alu.
The driver must read the rectangle
in the frame buffer specified by pbox
.
The contents of this rectangle
must be copied into the memory pointed to by image
.
stride
has the same meaning as when used by
DrawImage(D3nfb);
see
``stride'' in Developing NFB graphics adapter drivers.