GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Changing the slope of a graphics-text string GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
Because the 'New Bridge' and 'Linden Road' lie at unusual angles on the street map, the graphics text that labels them must also follow these angles. By changing the character-angle attribute before drawing any text, the routine can ensure that street names are drawn along each street. The GSCA call at D specifies values for dx and dy, which together determine the slope of a base line along which subsequent character boxes will be drawn. Here dx has a value of 2 and dy a value of -3.3. This causes the letters 'Lin' to be drawn sloping downward to the right. Because the street is curved, the angle of slope of the letters must change to keep the label on the street. As the slope of the street becomes less steep, the character angle attribute is made less steep for the character strings 'den' and 'Road'. |
Copyright IBM Corporation 1990, 2012 |