Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ image(3G) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

read(3G)

IMAGE(3G)  —  

NAME

VI_MImage, VI_FImage − draw an image

SYNOPSIS

VI_MImage(wd,ht,data)
int wd,ht;/∗ dimensions of image ∗/
unsigned short ∗data;/∗ first byte of image ∗/

VI_FImage(filename)
char ∗filename;/∗ file name of image to draw ∗/

DESCRIPTION

These functions draw an image from memory or from a file.  The current point is unchanged.  The image data should be in scanline order, from top to bottom, with each scanline padded to the next 16-bit word.  For example, for a width of WD and height of HT, there should be 2∗HT(WD+15)/16 bytes of image data. 

VI_MImageDraws an image of the specified dimensions whose top left corner is at the current point.  data must be the first byte of an image large enough to fill the rectangle specified by wd and ht, or an addressing error may result. 

VI_FImageDraws the image contained in the specified file, placing its top left corner at the current point.  The image file must have the following format:

Offset (bytes)Description
 0The width of the image
2The height of the image
4Image data

NOTE

VI_Image applies only to the IBM Academic Information Systems experimental display. 

SEE ALSO

read(3G)

PRPQs 5799-WZQ/5799-PFF: IBM/4.3  —  30 Sep 1985

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