IBS_ROTATE(3X) — NEWS-OS Programmer’s Manual
NAME
ibs_rotate − Rotates bitonal images
SYNOPSIS
int ibs_rotate(deg, sadr, siw, sx, sy, w, h, dadr, diw, dx, dy)
char ∗sadr, ∗dadr;
DESCRIPTION
ibs_rotate rotates bitonal images. The rectangular area defined by sadr (starting address), siw (image width), sx, sy, w (width) and h (height) is rotated by the number of degrees specified by deg (one of 90, 180 or 270) and stored in the area set 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 angle of rotation and 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.)
ERRORS
A −1 is returned in case of a parameter error. Otherwise a 0 is returned.
SEE ALSO
NEWS-OSRelease 4.1C