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