Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

NAME

XdWriteRectangle, XdWriteRectangleRGB − output a rectangle of 8 or 24 bit deep pixels

SYNOPSIS

void XdWriteRectangle(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;
 

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

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 source in pixels

pImage Specifies a pointer to the image data

bank Specifies which bank the pixel data should be written to

USAGE

This write-rectangle function allows some sub-rectangle of the total image specified to be written to the screen.  For XdWriteRectangle, the bank parameter specifies to which bank the data image is to be written.  The bank parameter can take one of the following values: RedBank, GreenBank, or BlueBank. 

Use XdWriteRectangleRGB to output a rectangle of 24 bit deep pixels.  Use XdWriteRectangle to output a rectangle of 8 bit deep pixels. 

September 02, 1992

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