\i C G A bits::mode word::width word::height
Parameter | Type | Range | Description |
---|---|---|---|
mode | bits | Bits 0 ... 3 and 7 | alignment properties |
width | word | 0 ... display width (0 = full display) | width of the alignment area |
height | word | 0 ... display height (0 = full display) | height of the alignment area |
Define an area in which the next graphic will be aligned when subsequently sending the command Display Local Graphic or Display Graphic Area as well as Load Animated Graphics, Set Animation Coordinates to X/Y or Set Animation Coordinates to Cursor Position.
Bit | Description |
---|---|
0 | center graphic horizontally |
1 | center graphic vertically |
2 | right justify graphic |
3 | bottom justify graphic |
7 | turn alignment on |
Note
Response: | [ACK] |
Example
\iCGA\x83\D100\D200
This will set graphic alignment to center the next drawn graphic or loaded animation horizontally and vertically in an area of 100 pixels width and 200 pixels height.
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Display Local Graphic
Load Animated Graphics
Display Graphic Area
Set Animation Coordinates to X/Y
Set Animation Coordinates to Cursor Position
Copyright © demmel products gmbh. All rights reserved.