summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/borderimage.qps
blob: 747a74d85ea6b5f3a209b140ac3524a06a136bc6 (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
image_load borderimage.png borderimage

translate -128 -128
begin_block draw_border

# top
drawImage borderimage   0   0  16  16   0   0  16  16
drawImage borderimage  16   0  36  16  16   0  32  16
drawImage borderimage  52   0  16  16  48   0  16  16

# sides
drawImage borderimage   0  16  16  16   0  16  16  32
drawImage borderimage  52  16  16  16  48  16  16  32

#bottom
drawImage borderimage   0  32  16  16   0  48  16  16
drawImage borderimage  16  32  36  16  16  48  32  16
drawImage borderimage  52  32  16  16  48  48  16  16

end_block draw_border

resetMatrix

begin_block draw_column

translate 1 1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border
translate 0.1 64.1
repeat_block draw_border

end_block draw_column

setRenderHint Antialiasing

resetMatrix
translate 72 0

repeat_block draw_column

resetMatrix
scale 1.25 1.25
translate 144 0

repeat_block draw_border

resetMatrix
scale 1.25 1.25
translate 246 0
rotate 30

repeat_block draw_border

setRenderHint SmoothPixmapTransform

resetMatrix
scale 1.25 1.25
translate 144 120

repeat_block draw_border

resetMatrix
scale 1.25 1.25
translate 246 120
rotate 30

repeat_block draw_border

resetMatrix
translate 215 260
scale 3.55 3.55
rotate 30

repeat_block draw_border

resetMatrix
setRenderHint SmoothPixmapTransform off
setRenderHint Antialiasing off

translate 480 627
rotate 180
repeat_block draw_column

resetMatrix
setRenderHint Antialiasing

translate 552 627
rotate 180
repeat_block draw_column

resetMatrix
setRenderHint Antialiasing off

setPen red

drawRect 0 0 70 680
drawText 10 670 "aa off"

drawRect 72 0 70 680
drawText 80 670 "aa on"

drawRect 409 0 70 680
drawText 419 650 "rot 180"
drawText 419 670 "aa off"

drawRect 481 0 70 680
drawText 491 650 "rot 180"
drawText 491 670 "aa on"

drawRect 164 0 224 124
drawText 174 114 "smoothpixmaptransform off"

drawRect 164 128 224 134
drawText 174 252 "smoothpixmaptransform on"