[ Previous |
The graPHIGS Programming Interface : Subroutine Reference
GPTWPO - Two Operand Pixel Operation
to transfer pixel data from an image board to another
image board through a pixel by pixel operation.
The operation performed to the pixel data is specified
by an operation type and accompanied operation dependent parameters.
Both source and target image boards must reside on the same
The specified target rectangle need not be inside of the target
image board; however,
the specified source rectangle must be inside of
the source image board.
When the target rectangle exceeds the target image board
boundaries, pixel data outside the boundaries is discarded.
If source and target storage have different bit depth, source pixels
are adjusted to the target bit length by removing most significant
bits or adding 0-bit to the most significant part.
tibid -- specified by user, fullword integer
Target image board identifier
torigin -- specified by user, two fullword integers
Target rectangle origin
size -- specified by user, two fullword integers
sibid -- specified by user, fullword integer
Source image board identifier
sorigin -- specified by user, two fullword integers
Source rectangle origin
op -- specified by user, fullword integer
opparm -- specified by user, array of fullword quantities
Operation dependent parameters
The following operation is defined and requires
operation dependent parameters.
Pixels in the source rectangle are placed into the target
rectangle in the reverse order.
This operation requires a fullword integer specifying
an axis about which the pixels are reflected as follows:
1: reflect about x-axis (reverse y-direction)
2: reflect about y-axis (reverse x-direction)
- SPECIFIED RESOURCES DO NOT EXIST ON THE SAME NUCLEUS
- SPECIFIED IMAGE BOARD DOES NOT EXIST
- RECTANGLE DEFINITION IS INVALID
- SPECIFIED TWO OPERAND OPERATION IS NOT SUPPORTED
[ Previous |