summaryrefslogtreecommitdiff
path: root/tests/auto/lancelot/scripts/background.qps
blob: 000cfcdd91d143a5833c0aeacc2ba5a8c83c4600 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Version: 1
# CheckVsReference: 5%

translate 10 30
setBackground 7f7fff
setBackgroundMode Transparent
setPen ff7f7f

path_moveTo path 0 0
path_lineTo path 25 0
path_cubicTo path 50 0 25 25 25 50
path_lineTo path 0 50

bitmap_load bitmap.png bitmap

begin_block drawing
  save 
    drawRect 0 0 50 50

    translate 60 0
    drawEllipse 0 0 50 50
  
    translate 60 0
    drawPolygon [0 0 50 0 25 50 25 25]

    translate 60 0
    drawPath path

    translate 60 0
    drawPie 0 0 50 50 1440 2000
    
    translate 60 0
    drawChord 0 0 50 50 1440 2000 

    translate 60 0
    drawLine 0 0 50 0
    drawLine 0 0 50 50
    drawLine 0 0 0 50

    translate 60 0
    drawPolyline [0 0 50 0 25 50 25 25]

    translate 60 0
    drawArc 0 0 50 50 1440 2000

    translate 60 0
    drawText 0 10 "Jambi-Bambi"    

    translate 80 0
    drawPixmap bitmap 0 0 
  restore

  save
    setRenderHint Antialiasing
    translate 5 55
    drawRect 0 0 50 50

    translate 60 0
    drawEllipse 0 0 50 50
  
    translate 60 0
    drawPolygon [0 0 50 0 25 50 25 25]

    translate 60 0
    drawPath path

    translate 60 0
    drawPie 0 0 50 50 1440 2000
    
    translate 60 0
    drawChord 0 0 50 50 1440 2000 

    translate 60 0
    drawLine 0 0 50 0
    drawLine 0 0 50 50
    drawLine 0 0 0 50

    translate 60 0
    drawPolyline [0 0 50 0 25 50 25 25]

    translate 60 0
    drawArc 0 0 50 50 1440 2000

    translate 60 0
    drawText 0 10 "Jambi-Bambi"    

    translate 80 0
    drawPixmap bitmap 0 0 
  restore
end_block

translate 0 160
setBackgroundMode Transparent
setPen ff7f7f 0 dotline flatcap beveljoin
repeat_block drawing

translate 0 160
setBackgroundMode Opaque
setPen ff7f7f 0 dotline flatcap beveljoin
repeat_block drawing

translate 0 160
setBackgroundMode Transparent
setPen ff7f7f 4 dashline flatcap beveljoin
repeat_block drawing    

translate 0 160
setBackgroundMode OpaqueMode
setPen ff7f7f 4 dashline flatcap beveljoin
repeat_block drawing    

resetMatrix

translate 5 5

setBrush nobrush
setPen black
setBackgroundMode transparent
drawText 10 15 "TransparentMode with solid 0-width pen"
drawRect 0 0 685 135

translate 0 160
drawText 10 15 "TransparentMode with dotted 0-width pen"
drawRect 0 0 685 135

translate 0 160
drawText 10 15 "OpaqueMode with dotted 0-width pen"
drawRect 0 0 685 135

translate 0 160
drawText 10 15 "TransparentMode with dotted 4-width pen"
drawRect 0 0 685 135

translate 0 160
drawText 10 15 "OpaqueMode with solid 4-width pen"
drawRect 0 0 685 135