Debian Codegraph @

tests/auto/other/lancelot/scripts/image_formats.qps

raw
1 # Version: 1
2 # CheckVsReference: 5%
3
4
5 image_load dome_argb32.png the_pixmap
6 image_convertToFormat the_pixmap the_pixmap ARGB32_Premultiplied
7
8 begin_block draw_stuff
9 save
10 image_convertToFormat the_pixmap converted ARGB32_Premultiplied
11 drawImage converted 0 0
12 translate 0 110
13
14 image_convertToFormat the_pixmap converted ARGB32
15 drawImage converted 0 0
16 translate 0 110
17
18 image_convertToFormat the_pixmap converted RGB32
19 drawImage converted 0 0
20 translate 0 110
21
22 image_convertToFormat the_pixmap converted Indexed8
23 drawImage converted 0 0
24 translate 0 110
25
26 image_convertToFormat the_pixmap converted MonoLSB
27 drawImage converted 0 0
28 translate 0 110
29
30 image_convertToFormat the_pixmap converted Mono
31 drawImage converted 0 0
32 translate 0 110
33 restore
34 end_block
35
36
37 image_load dome_argb32.png the_pixmap
38 translate 110 0
39 repeat_block draw_stuff
40
41
42 image_load dome_rgb32.png the_pixmap
43 translate 110 0
44 repeat_block draw_stuff
45
46 image_load dome_indexed.png the_pixmap
47 translate 110 0
48 repeat_block draw_stuff
49
50
51 image_load dome_mono.png the_pixmap
52 translate 110 0
53 repeat_block draw_stuff
54
55 image_load dome_mono_palette.png the_pixmap
56 translate 110 0
57 repeat_block draw_stuff
58
59 image_load dome_indexed_mask.png the_pixmap
60 translate 110 0
61 repeat_block draw_stuff
62
63
64 # helpful texts
65 resetMatrix
66 setPen black
67
68 drawText 10 670 "ARGB32_PM"
69 drawText 120 670 "ARGB32"
70 drawText 230 670 "RGB32"
71 drawText 340 670 "Indexed"
72 drawText 450 670 "Mono"
73 drawText 560 670 "Mono w/lut"
74 drawText 670 670 "Indexed w/mask"
75
76 drawText 770 50 "ARGB32_PM"
77 drawText 770 160 "ARGB32"
78 drawText 770 270 "RGB32"
79 drawText 770 380 "Indexed"
80 drawText 770 490 "MonoLSB"
81 drawText 770 600 "Mono"