Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ drawing_mod(3G) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DRAWING_MODE(3G)

NAME

drawing_mode − select the pixel replacement rules for subsequent raster operations and output primitives. 

SYNOPSIS

C SYNTAX

void drawing_mode(fildes,replacement_rule);
int fildes,replacement_rule;

FORTRAN77 SYNTAX

        subroutine drawing_mode(fildes,replacement_rule)
        integer*4 fildes,replacement_rule

PASCAL SYNTAX

procedure drawing_mode(fildes,replacement_rule:integer);

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: ANSI Computer Graphics Interface

DESCRIPTION

INPUT PARAMETERS

fildes
is an integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 
replacement_rule
defines the combination of source and destination pixel values
 

-------------------------------------------------
|replacement|  resulting destination value      |
|   rules   |                                   |
|-----------|-----------------------------------|
|     0     | ZERO                              |
|     1     | source AND destination            |
|     2     | source AND NOT destination        |
|     3     | source (the default rule)         |
|     4     | NOT source AND destination        |
|     5     | destination                       |
|     6     | source EXCLUSIVE OR destination   |
|     7     | source OR destination             |
|     8     | NOT source AND NOT destination    |
|     9     | source EXCLUSIVE NOR destination  |
|    10     | NOT destination                   |
|    11     | source OR NOT destination         |
|    12     | NOT source                        |
|    13     | NOT source OR destination         |
|    14     | NOT source OR NOT destination     |
|    15     | ONE                               |
-------------------------------------------------

 

DISCUSSION

Drawing_mode sets the replacement rule used by both the raster operation functions and all the output primitives. 
 
This procedure only applies to raster devices. Some raster devices may not support all drawing modes.

DEFAULTS

Replacement_rule = 3 (source)
 

SEE ALSO

Starbase Device Drivers Library.

Hewlett-Packard  —  last mod. May 11, 2021

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