0
|
1 |
|
|
2 |
translate 0 10
|
|
3 |
setRenderHint Antialiasing
|
|
4 |
|
|
5 |
pixmap_load dome_argb32 the_pixmap
|
|
6 |
|
|
7 |
begin_block draw_stuff
|
|
8 |
save
|
|
9 |
|
|
10 |
# Standard draw
|
|
11 |
drawTiledPixmap the_pixmap 0 0 150 100 0 0
|
|
12 |
|
|
13 |
# Standard draw with offset
|
|
14 |
translate 160 0
|
|
15 |
drawTiledPixmap the_pixmap 0 0 150 100 25 25
|
|
16 |
|
|
17 |
# xformed
|
|
18 |
translate 160 0
|
|
19 |
save
|
|
20 |
translate 10 -10
|
|
21 |
rotate 10
|
|
22 |
setRenderHint SmoothPixmapTransform false
|
|
23 |
drawTiledPixmap the_pixmap 0 0 150 100 25 25
|
|
24 |
restore
|
|
25 |
|
|
26 |
# xformed with smooth xform
|
|
27 |
translate 160 0
|
|
28 |
save
|
|
29 |
translate 10 -10
|
|
30 |
rotate 10
|
|
31 |
setRenderHint SmoothPixmapTransform
|
|
32 |
drawTiledPixmap the_pixmap 0 0 150 100 25 25
|
|
33 |
restore
|
|
34 |
restore
|
|
35 |
end_block
|
|
36 |
|
|
37 |
|
|
38 |
translate 0 120
|
|
39 |
pixmap_load dome_rgb32 the_pixmap
|
|
40 |
repeat_block draw_stuff
|
|
41 |
|
|
42 |
|
|
43 |
translate 0 120
|
|
44 |
pixmap_load dome_indexed the_pixmap
|
|
45 |
repeat_block draw_stuff
|
|
46 |
|
|
47 |
|
|
48 |
translate 0 120
|
|
49 |
pixmap_load dome_indexed_mask the_pixmap
|
|
50 |
repeat_block draw_stuff
|
|
51 |
|
|
52 |
|
|
53 |
translate 0 120
|
|
54 |
pixmap_load dome_mono the_pixmap
|
|
55 |
repeat_block draw_stuff
|
|
56 |
|
|
57 |
|
|
58 |
################################################################################
|
|
59 |
# Some helpful text...
|
|
60 |
#
|
|
61 |
|
|
62 |
resetMatrix
|
|
63 |
translate 650 80
|
|
64 |
drawText 0 0 "32 bit w/alpha"
|
|
65 |
translate 0 120
|
|
66 |
drawText 0 0 "32 bit w/o alpha"
|
|
67 |
translate 0 120
|
|
68 |
drawText 0 0 "8 bit indexed"
|
|
69 |
translate 0 120
|
|
70 |
drawText 0 0 "8 bit indexed w/mask"
|
|
71 |
translate 0 120
|
|
72 |
drawText 0 0 "1 bit"
|
|
73 |
|
|
74 |
resetMatrix
|
|
75 |
translate 10 630
|
|
76 |
drawText 0 0 "normal"
|
|
77 |
translate 160 0
|
|
78 |
drawText 0 0 "offset"
|
|
79 |
translate 160 0
|
|
80 |
drawText 0 0 "xformed"
|
|
81 |
translate 160 0
|
|
82 |
drawText 0 0 "smooth xformed" |