0
|
1 |
|
|
2 |
setRenderHint Antialiasing
|
|
3 |
|
|
4 |
setPen #00ff00
|
|
5 |
|
|
6 |
pixmap_load dome_argb32.png the_pixmap
|
|
7 |
begin_block draw_stuff
|
|
8 |
|
|
9 |
save
|
|
10 |
|
|
11 |
# standard draw
|
|
12 |
drawPixmap the_pixmap 0 0
|
|
13 |
|
|
14 |
# sub recting
|
|
15 |
translate 120 0
|
|
16 |
drawPixmap the_pixmap 0 0 40 40 0 0 40 40
|
|
17 |
drawPixmap the_pixmap 60 0 40 40 60 0 40 40
|
|
18 |
drawPixmap the_pixmap 0 60 40 40 0 60 40 40
|
|
19 |
drawPixmap the_pixmap 60 60 40 40 60 60 40 40
|
|
20 |
drawPixmap the_pixmap 0 40 40 20 0 40 40 20
|
|
21 |
drawPixmap the_pixmap 60 40 40 20 60 40 40 20
|
|
22 |
drawPixmap the_pixmap 40 0 20 100 40 0 20 100
|
|
23 |
|
|
24 |
# subrecting w/scale
|
|
25 |
translate 120 0
|
|
26 |
drawPixmap the_pixmap 0 0 50 50 0 0 25 25
|
|
27 |
drawPixmap the_pixmap 50 0 50 50 25 0 25 25
|
|
28 |
drawPixmap the_pixmap 0 50 50 50 0 25 25 25
|
|
29 |
drawPixmap the_pixmap 50 50 50 50 25 25 25 25
|
|
30 |
|
|
31 |
# subrecting w/scale & smooth xform
|
|
32 |
translate 120 0
|
|
33 |
setRenderHint SmoothPixmapTransformation
|
|
34 |
drawPixmap the_pixmap 0 0 50 50 0 0 25 25
|
|
35 |
drawPixmap the_pixmap 50 0 50 50 25 0 25 25
|
|
36 |
drawPixmap the_pixmap 0 50 50 50 0 25 25 25
|
|
37 |
drawPixmap the_pixmap 50 50 50 50 25 25 25 25
|
|
38 |
|
|
39 |
|
|
40 |
# Rotation w/o smooth xform
|
|
41 |
translate 120 0
|
|
42 |
save
|
|
43 |
setRenderHint SmoothPixmapTransform off
|
|
44 |
rotate 10
|
|
45 |
drawPixmap the_pixmap 0 0
|
|
46 |
restore
|
|
47 |
|
|
48 |
# Rotation w smooth xform
|
|
49 |
translate 120 0
|
|
50 |
save
|
|
51 |
setRenderHint SmoothPixmapTransform
|
|
52 |
rotate 10
|
|
53 |
drawPixmap the_pixmap 0 0
|
|
54 |
restore
|
|
55 |
|
|
56 |
restore
|
|
57 |
|
|
58 |
end_block
|
|
59 |
|
|
60 |
|
|
61 |
translate 0 120
|
|
62 |
pixmap_load dome_rgb32.png the_pixmap
|
|
63 |
repeat_block draw_stuff
|
|
64 |
|
|
65 |
translate 0 120
|
|
66 |
pixmap_load dome_indexed.png the_pixmap
|
|
67 |
repeat_block draw_stuff
|
|
68 |
|
|
69 |
translate 0 120
|
|
70 |
pixmap_load dome_indexed_mask.png the_pixmap
|
|
71 |
repeat_block draw_stuff
|
|
72 |
|
|
73 |
translate 0 120
|
|
74 |
pixmap_load dome_mono.png the_pixmap
|
|
75 |
repeat_block draw_stuff
|
|
76 |
|
|
77 |
|
|
78 |
resetMatrix
|
|
79 |
translate 700 60
|
|
80 |
setPen black
|
|
81 |
drawText 0 0 "32 bit w/alpha"
|
|
82 |
translate 0 120
|
|
83 |
drawText 0 0 "32 bit w/o alpha"
|
|
84 |
translate 0 120
|
|
85 |
drawText 0 0 "8 bit indexed"
|
|
86 |
translate 0 120
|
|
87 |
drawText 0 0 "8 bit indexed w/mask"
|
|
88 |
translate 0 120
|
|
89 |
drawText 0 0 "1 bit"
|
|
90 |
resetMatrix
|
|
91 |
translate 0 600
|
|
92 |
drawText 0 0 "normal"
|
|
93 |
translate 120 0
|
|
94 |
drawText 0 0 "subrect"
|
|
95 |
translate 120 0
|
|
96 |
drawText 0 0 "subrect scale"
|
|
97 |
translate 120 0
|
|
98 |
drawText 0 0 "subrect scale smooth"
|
|
99 |
translate 120 0
|
|
100 |
drawText 0 0 "xform"
|
|
101 |
translate 120 0
|
|
102 |
drawText 0 0 "smooth xform"
|
|
103 |
translate 120 0
|