| GPHR (wsid, hatch, format, length, data) |
Purpose
Use GPHR to change a hatch pattern associated with a specific hatch index.
Some workstations require that the hatch fill be at a fixed size. For these workstations, the graPHIGS API replicates the The fixed sizes are a power of two. Therefore, specifying a hatch pattern with sizes that are a power of two produces the best results (i.e. no seams or discontinuity in the fill operation) See the Set Interior Style Index (GPISI) subroutine for the default hatch patterns in the workstation's hatch table.
Parameters
-----------------
0 | x-size | fullword integer (number of columns)
|---------------|
4 | y-size | fullword integer (number of rows)
|---------------|
8 | pattern | bit array (array of unsigned characters)
| |
-----------------
Note: The bit array must be in row order with each row beginning on a byte boundary. Therefore, the size of the bit array is ((x hyphen size plus 7) slash 8 % % asterisk y hyphen size) bytes.
Error Codes
Related Subroutines
RCP code
201329421 (X'0C000B0D')