blob: 65734dd3222d18ac2c0b99285d1a15c3a5dacc1b (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
setRenderHint Antialiasing
setPen #00ff00
pixmap_load dome_argb32.png the_pixmap
begin_block draw_stuff
save
# standard draw
drawPixmap the_pixmap 0 0
# sub recting
translate 120 0
drawPixmap the_pixmap 0 0 40 40 0 0 40 40
drawPixmap the_pixmap 60 0 40 40 60 0 40 40
drawPixmap the_pixmap 0 60 40 40 0 60 40 40
drawPixmap the_pixmap 60 60 40 40 60 60 40 40
drawPixmap the_pixmap 0 40 40 20 0 40 40 20
drawPixmap the_pixmap 60 40 40 20 60 40 40 20
drawPixmap the_pixmap 40 0 20 100 40 0 20 100
# subrecting w/scale
translate 120 0
drawPixmap the_pixmap 0 0 50 50 0 0 25 25
drawPixmap the_pixmap 50 0 50 50 25 0 25 25
drawPixmap the_pixmap 0 50 50 50 0 25 25 25
drawPixmap the_pixmap 50 50 50 50 25 25 25 25
# subrecting w/scale & smooth xform
translate 120 0
setRenderHint SmoothPixmapTransformation
drawPixmap the_pixmap 0 0 50 50 0 0 25 25
drawPixmap the_pixmap 50 0 50 50 25 0 25 25
drawPixmap the_pixmap 0 50 50 50 0 25 25 25
drawPixmap the_pixmap 50 50 50 50 25 25 25 25
# Rotation w/o smooth xform
translate 120 0
save
setRenderHint SmoothPixmapTransform off
rotate 10
drawPixmap the_pixmap 0 0
restore
# Rotation w smooth xform
translate 120 0
save
setRenderHint SmoothPixmapTransform
rotate 10
drawPixmap the_pixmap 0 0
restore
restore
end_block
translate 0 120
pixmap_load dome_rgb32.png the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_indexed.png the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_indexed_mask.png the_pixmap
repeat_block draw_stuff
translate 0 120
pixmap_load dome_mono.png the_pixmap
repeat_block draw_stuff
resetMatrix
translate 700 60
setPen black
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 0 600
drawText 0 0 "normal"
translate 120 0
drawText 0 0 "subrect"
translate 120 0
drawText 0 0 "subrect scale"
translate 120 0
drawText 0 0 "subrect scale smooth"
translate 120 0
drawText 0 0 "xform"
translate 120 0
drawText 0 0 "smooth xform"
translate 120 0
|