Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ibs_trans(3X) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

libibs(3X)

IBS_TRANS(3X)  —  NEWS-OS Programmer’s Manual

NAME

ibs_trans, ibs_mirror − Performs transfer of rectangular areas and mirror image processing of bitonal images

SYNOPSIS

int ibs_trans(rop, sadr, siw, sx, sy, w, h, dadr, diw, dx, dy)
char ∗sadr, ∗dadr;
 int ibs_mirror(rop, sadr, siw, sx, sy, w, h, dadr, diw, dx, dy)
char ∗sadr, ∗dadr;

DESCRIPTION

ibs_trans transfers rectangular portions of bitonal images, including raster operations.  The raster operation specified by rop is performed on the source area and the result is stored in the destination area. 

ibs_mirror performs mirror image processing on bitonal images, including raster operations.  After a mirror image of the source area is produced, raster operation specified by rop is performed and the result is stored in the destination area. 

The source area is defined by sadr (starting address), siw (image width), sx, sy, w (width) and h (height). The destination area is defined by dadr (starting address), diw (image width), dx and dy. 

The vertical and horizontal size of the data in the destination area which is generated is determined by the size of the source. 

siw and diw must be multiples of 8.  Also, the right edge of the area must not exceed the image width. 

The results may be unpredictable if the source and destination areas overlap.  (No parameter error results.) 

The source has no effect on the calculations for certain raster operations.  Nevertheless, the parameters are checked anyway.  Specifying an illogical source area will result in a parameter error. 

The following types of raster operations are available.  (Src stands for “source,” and Dest for “destination.”)

rop valuecalculation
00
1Src & Dest
2Src & ~Dest
3Src
4~Src & Dest
5Dest
6Src ^ Dest
7Src | Dest
8~(Src | Dest)
9~(Src ^ Dest)
10~Dest
11Src | ~Dest
12~Src
13~Src | Dest
14~(Src & Dest)
151

ERRORS

A −1 is returned in case of a parameter error.  Otherwise a 0 is returned. 

SEE ALSO

libibs(3X)

NEWS-OSRelease 4.2.1R

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