0
|
1 |
setRenderHint Antialiasing
|
|
2 |
|
|
3 |
image_load zebra.png zebra_png
|
|
4 |
|
|
5 |
image_convertToFormat zebra_png zebra ARGB32_Premultiplied
|
|
6 |
|
|
7 |
translate 75 100
|
|
8 |
# standard draw
|
|
9 |
begin_block row
|
|
10 |
drawImage zebra -50 -50
|
|
11 |
|
|
12 |
translate 90 0
|
|
13 |
save
|
|
14 |
rotate_y 50
|
|
15 |
drawImage zebra -50 -50
|
|
16 |
restore
|
|
17 |
|
|
18 |
translate 65 0
|
|
19 |
save
|
|
20 |
rotate_y 60
|
|
21 |
drawImage zebra -50 -50
|
|
22 |
restore
|
|
23 |
|
|
24 |
translate 50 0
|
|
25 |
save
|
|
26 |
rotate_y 70
|
|
27 |
drawImage zebra -50 -50
|
|
28 |
restore
|
|
29 |
|
|
30 |
translate 30 0
|
|
31 |
save
|
|
32 |
rotate_y 80
|
|
33 |
drawImage zebra -50 -50
|
|
34 |
restore
|
|
35 |
|
|
36 |
translate 24 0
|
|
37 |
save
|
|
38 |
rotate_y 82
|
|
39 |
drawImage zebra -50 -50
|
|
40 |
restore
|
|
41 |
|
|
42 |
translate 20 0
|
|
43 |
save
|
|
44 |
rotate_y 84
|
|
45 |
drawImage zebra -50 -50
|
|
46 |
restore
|
|
47 |
|
|
48 |
translate 16 0
|
|
49 |
save
|
|
50 |
rotate_y 86
|
|
51 |
drawImage zebra -50 -50
|
|
52 |
restore
|
|
53 |
|
|
54 |
translate 12 0
|
|
55 |
save
|
|
56 |
rotate_y 87
|
|
57 |
drawImage zebra -50 -50
|
|
58 |
restore
|
|
59 |
|
|
60 |
translate 8 0
|
|
61 |
save
|
|
62 |
rotate_y 88
|
|
63 |
drawImage zebra -50 -50
|
|
64 |
restore
|
|
65 |
|
|
66 |
translate 6 0
|
|
67 |
save
|
|
68 |
rotate_y 89
|
|
69 |
drawImage zebra -50 -50
|
|
70 |
restore
|
|
71 |
|
|
72 |
translate 6 0
|
|
73 |
save
|
|
74 |
rotate_y 91
|
|
75 |
drawImage zebra -50 -50
|
|
76 |
restore
|
|
77 |
|
|
78 |
translate 6 0
|
|
79 |
save
|
|
80 |
rotate_y 92
|
|
81 |
drawImage zebra -50 -50
|
|
82 |
restore
|
|
83 |
|
|
84 |
translate 8 0
|
|
85 |
save
|
|
86 |
rotate_y 93
|
|
87 |
drawImage zebra -50 -50
|
|
88 |
restore
|
|
89 |
|
|
90 |
translate 12 0
|
|
91 |
save
|
|
92 |
rotate_y 94
|
|
93 |
drawImage zebra -50 -50
|
|
94 |
restore
|
|
95 |
|
|
96 |
translate 16 0
|
|
97 |
save
|
|
98 |
rotate_y 96
|
|
99 |
drawImage zebra -50 -50
|
|
100 |
restore
|
|
101 |
|
|
102 |
translate 20 0
|
|
103 |
save
|
|
104 |
rotate_y 98
|
|
105 |
drawImage zebra -50 -50
|
|
106 |
restore
|
|
107 |
|
|
108 |
translate 24 0
|
|
109 |
save
|
|
110 |
rotate_y 100
|
|
111 |
drawImage zebra -50 -50
|
|
112 |
restore
|
|
113 |
|
|
114 |
translate 30 0
|
|
115 |
save
|
|
116 |
rotate_y 110
|
|
117 |
drawImage zebra -50 -50
|
|
118 |
restore
|
|
119 |
|
|
120 |
translate 50 0
|
|
121 |
save
|
|
122 |
rotate_y 120
|
|
123 |
drawImage zebra -50 -50
|
|
124 |
restore
|
|
125 |
|
|
126 |
translate 65 0
|
|
127 |
save
|
|
128 |
rotate_y 130
|
|
129 |
drawImage zebra -50 -50
|
|
130 |
restore
|
|
131 |
|
|
132 |
translate 90 0
|
|
133 |
save
|
|
134 |
rotate_y 180
|
|
135 |
drawImage zebra -50 -50
|
|
136 |
restore
|
|
137 |
end_block
|
|
138 |
|
|
139 |
resetMatrix
|
|
140 |
translate 75 280
|
|
141 |
setRenderHint SmoothPixmapTransform
|
|
142 |
repeat_block row
|
|
143 |
|
|
144 |
resetMatrix
|
|
145 |
setPen black
|
|
146 |
translate 300 20
|
|
147 |
drawText 0 0 "Fast Pixmap Transform"
|
|
148 |
resetMatrix
|
|
149 |
translate 300 210
|
|
150 |
drawText 0 0 "Smooth Pixmap Transform"
|
|
151 |
|
|
152 |
resetMatrix
|
|
153 |
translate 0 400
|
|
154 |
|
|
155 |
image_load dome_argb32.png the_pixmap
|
|
156 |
|
|
157 |
image_convertToFormat the_pixmap dome ARGB32
|
|
158 |
|
|
159 |
setRenderHint SmoothPixmapTransform false
|
|
160 |
|
|
161 |
translate 75 100
|
|
162 |
# standard draw
|
|
163 |
begin_block row
|
|
164 |
drawImage dome -50 -50
|
|
165 |
|
|
166 |
translate 90 0
|
|
167 |
save
|
|
168 |
rotate_y 50
|
|
169 |
drawImage dome -50 -50
|
|
170 |
restore
|
|
171 |
|
|
172 |
translate 65 0
|
|
173 |
save
|
|
174 |
rotate_y 60
|
|
175 |
drawImage dome -50 -50
|
|
176 |
restore
|
|
177 |
|
|
178 |
translate 50 0
|
|
179 |
save
|
|
180 |
rotate_y 70
|
|
181 |
drawImage dome -50 -50
|
|
182 |
restore
|
|
183 |
|
|
184 |
translate 30 0
|
|
185 |
save
|
|
186 |
rotate_y 80
|
|
187 |
drawImage dome -50 -50
|
|
188 |
restore
|
|
189 |
|
|
190 |
translate 24 0
|
|
191 |
save
|
|
192 |
rotate_y 82
|
|
193 |
drawImage dome -50 -50
|
|
194 |
restore
|
|
195 |
|
|
196 |
translate 20 0
|
|
197 |
save
|
|
198 |
rotate_y 84
|
|
199 |
drawImage dome -50 -50
|
|
200 |
restore
|
|
201 |
|
|
202 |
translate 16 0
|
|
203 |
save
|
|
204 |
rotate_y 86
|
|
205 |
drawImage dome -50 -50
|
|
206 |
restore
|
|
207 |
|
|
208 |
translate 12 0
|
|
209 |
save
|
|
210 |
rotate_y 87
|
|
211 |
drawImage dome -50 -50
|
|
212 |
restore
|
|
213 |
|
|
214 |
translate 8 0
|
|
215 |
save
|
|
216 |
rotate_y 88
|
|
217 |
drawImage dome -50 -50
|
|
218 |
restore
|
|
219 |
|
|
220 |
translate 6 0
|
|
221 |
save
|
|
222 |
rotate_y 89
|
|
223 |
drawImage dome -50 -50
|
|
224 |
restore
|
|
225 |
|
|
226 |
translate 6 0
|
|
227 |
save
|
|
228 |
rotate_y 91
|
|
229 |
drawImage dome -50 -50
|
|
230 |
restore
|
|
231 |
|
|
232 |
translate 6 0
|
|
233 |
save
|
|
234 |
rotate_y 92
|
|
235 |
drawImage dome -50 -50
|
|
236 |
restore
|
|
237 |
|
|
238 |
translate 8 0
|
|
239 |
save
|
|
240 |
rotate_y 93
|
|
241 |
drawImage dome -50 -50
|
|
242 |
restore
|
|
243 |
|
|
244 |
translate 12 0
|
|
245 |
save
|
|
246 |
rotate_y 94
|
|
247 |
drawImage dome -50 -50
|
|
248 |
restore
|
|
249 |
|
|
250 |
translate 16 0
|
|
251 |
save
|
|
252 |
rotate_y 96
|
|
253 |
drawImage dome -50 -50
|
|
254 |
restore
|
|
255 |
|
|
256 |
translate 20 0
|
|
257 |
save
|
|
258 |
rotate_y 98
|
|
259 |
drawImage dome -50 -50
|
|
260 |
restore
|
|
261 |
|
|
262 |
translate 24 0
|
|
263 |
save
|
|
264 |
rotate_y 100
|
|
265 |
drawImage dome -50 -50
|
|
266 |
restore
|
|
267 |
|
|
268 |
translate 30 0
|
|
269 |
save
|
|
270 |
rotate_y 110
|
|
271 |
drawImage dome -50 -50
|
|
272 |
restore
|
|
273 |
|
|
274 |
translate 50 0
|
|
275 |
save
|
|
276 |
rotate_y 120
|
|
277 |
drawImage dome -50 -50
|
|
278 |
restore
|
|
279 |
|
|
280 |
translate 65 0
|
|
281 |
save
|
|
282 |
rotate_y 130
|
|
283 |
drawImage dome -50 -50
|
|
284 |
restore
|
|
285 |
|
|
286 |
translate 90 0
|
|
287 |
save
|
|
288 |
rotate_y 180
|
|
289 |
drawImage dome -50 -50
|
|
290 |
restore
|
|
291 |
end_block
|
|
292 |
|
|
293 |
resetMatrix
|
|
294 |
translate 0 400
|
|
295 |
translate 75 280
|
|
296 |
setRenderHint SmoothPixmapTransform
|
|
297 |
repeat_block row
|
|
298 |
|
|
299 |
resetMatrix
|
|
300 |
setPen black
|
|
301 |
translate 0 400
|
|
302 |
translate 300 20
|
|
303 |
drawText 0 0 "Fast Pixmap Transform"
|
|
304 |
resetMatrix
|
|
305 |
translate 0 400
|
|
306 |
translate 300 210
|
|
307 |
drawText 0 0 "Smooth Pixmap Transform"
|