Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XdRdRect(3X) — Kubota Pacific 4.2 System Software

Media Vault

Software Library

Restoration Projects

Artifacts Sought

XdReadRectangle(3X)  —  Kubota Pacfic Computer Inc. (X Direct Graphics)

NAME

XdReadRectangle − read a rectangle of 8 bit deep pixels

SYNOPSIS

void XdReadRectangle(wh, xSrc, ySrc, xDst, yDst, w, h,
     imageWidth, pImage, bank)
   WindowHandle   ∗wh;
   int xSrc, ySrc;
   int xDst, yDst;
   unsigned int w, h;
   int imageWidth;
   unsigned char ∗pImage;
   int bank;

wh Specifies the window to draw into

xSrc, ySrc Specifies the top left hand corner of the image data to be written to the window

xDst, yDst Specifies where the image data is to be positioned within the window

w, h Specifies the width and height of the image to be written to the window

imageWidth Specifies the width of each scanline of the destination in pixels

pImage Specifies a pointer to the image data

bank Specifies which bank the pixel data should be written to. 

USAGE

Use XdReadRectangle to read a rectangle of 8 bit deep pixels. 

The XdReadRectangle functions reads a rectangular array of pixel data from the frame buffer into some sub-rectangle of the total memory image array.  Which bank the image data is written to is specified by the bank parameter which can take one of the following values: RedBank, GreenBank, or BlueBank. 

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026