1image_load borderimage.png borderimage
2
3translate -128 -128
4begin_block draw_border
5
6# top
7drawImage borderimage   0   0  16  16   0   0  16  16
8drawImage borderimage  16   0  36  16  16   0  32  16
9drawImage borderimage  52   0  16  16  48   0  16  16
10
11# sides
12drawImage borderimage   0  16  16  16   0  16  16  32
13drawImage borderimage  52  16  16  16  48  16  16  32
14
15#bottom
16drawImage borderimage   0  32  16  16   0  48  16  16
17drawImage borderimage  16  32  36  16  16  48  32  16
18drawImage borderimage  52  32  16  16  48  48  16  16
19
20end_block draw_border
21
22resetMatrix
23
24begin_block draw_column
25
26translate 1 1
27repeat_block draw_border
28translate 0.1 64.1
29repeat_block draw_border
30translate 0.1 64.1
31repeat_block draw_border
32translate 0.1 64.1
33repeat_block draw_border
34translate 0.1 64.1
35repeat_block draw_border
36translate 0.1 64.1
37repeat_block draw_border
38translate 0.1 64.1
39repeat_block draw_border
40translate 0.1 64.1
41repeat_block draw_border
42translate 0.1 64.1
43repeat_block draw_border
44translate 0.1 64.1
45repeat_block draw_border
46
47end_block draw_column
48
49setRenderHint Antialiasing
50
51resetMatrix
52translate 72 0
53
54repeat_block draw_column
55
56resetMatrix
57scale 1.25 1.25
58translate 144 0
59
60repeat_block draw_border
61
62resetMatrix
63scale 1.25 1.25
64translate 246 0
65rotate 30
66
67repeat_block draw_border
68
69setRenderHint SmoothPixmapTransform
70
71resetMatrix
72scale 1.25 1.25
73translate 144 120
74
75repeat_block draw_border
76
77resetMatrix
78scale 1.25 1.25
79translate 246 120
80rotate 30
81
82repeat_block draw_border
83
84resetMatrix
85translate 215 260
86scale 3.55 3.55
87rotate 30
88
89repeat_block draw_border
90
91resetMatrix
92setRenderHint SmoothPixmapTransform off
93setRenderHint Antialiasing off
94
95translate 480 627
96rotate 180
97repeat_block draw_column
98
99resetMatrix
100setRenderHint Antialiasing
101
102translate 552 627
103rotate 180
104repeat_block draw_column
105
106resetMatrix
107setRenderHint Antialiasing off
108
109translate 200.1 520.1
110
111begin_block one_pixel_border
112drawImage borderimage   0   0  16  16   0   0  16  16
113drawImage borderimage  16   0  64  16  16   0   1   1
114drawImage borderimage  80   0  16  16  48   0  16  16
115
116drawImage borderimage   0  16  16  64  16   0   1   1
117drawImage borderimage  80  16  16  64  16   0   1   1
118
119drawImage borderimage   0  80  16  16   0  48  16  16
120drawImage borderimage  16  80  64  16  16   0   1   1
121drawImage borderimage  80  80  16  16  48  48  16  16
122end_block one_pixel_border
123
124resetMatrix
125
126translate 205.1 626.1
127scale 0.4 0.4
128
129repeat_block one_pixel_border
130
131resetMatrix
132
133translate 255.1 624.1
134scale 0.4 0.4
135rotate 10
136
137repeat_block one_pixel_border
138
139resetMatrix
140
141setPen red
142
143drawRect 0 0 70 680
144drawText 10 670 "aa off"
145
146drawRect 72 0 70 680
147drawText 80 670 "aa on"
148
149drawRect 409 0 70 680
150drawText 419 650 "rot 180"
151drawText 419 670 "aa off"
152
153drawRect 481 0 70 680
154drawText 491 650 "rot 180"
155drawText 491 670 "aa on"
156
157drawRect 164 0 224 124
158drawText 174 114 "smoothpixmaptransform off"
159
160drawRect 164 128 224 134
161drawText 174 252 "smoothpixmaptransform on"
162
163drawRect 200 520 97 188
164drawText 210 698 "1x1 edges"
165