| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Rectangle { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
smooth: true |
| 7 |
Rectangle{ |
| 8 |
id: rect0_0 |
| 9 |
width: 160 |
| 10 |
height: 160 |
| 11 |
x: 0 |
| 12 |
y: 0 |
| 13 |
Text{ |
| 14 |
text: "Stretch" |
| 15 |
x: 20 |
| 16 |
y: 20 |
| 17 |
color: "red" |
| 18 |
font.family: "Helvetica" |
| 19 |
font.pointSize: 24 |
| 20 |
z: 1 |
| 21 |
} |
| 22 |
Image{ |
| 23 |
id: bwLinear1 |
| 24 |
width: 160 |
| 25 |
height: 160 |
| 26 |
source: "../shared/bw_1535x2244.jpg" |
| 27 |
sourceSize.width: 1535 |
| 28 |
sourceSize.height: 2244 |
| 29 |
} |
| 30 |
} |
| 31 |
Rectangle{ |
| 32 |
id: rect0_1 |
| 33 |
width: 160 |
| 34 |
height: 160 |
| 35 |
x: 180 |
| 36 |
y: 0 |
| 37 |
Text{ |
| 38 |
text: "Preserve\naspect\nfit" |
| 39 |
x: 20 |
| 40 |
y: 20 |
| 41 |
color: "red" |
| 42 |
font.family: "Helvetica" |
| 43 |
font.pointSize: 24 |
| 44 |
z: 1 |
| 45 |
} |
| 46 |
Image{ |
| 47 |
id: bwLinear2 |
| 48 |
width: 160 |
| 49 |
height: 160 |
| 50 |
source: "../shared/bw_1535x2244.jpg" |
| 51 |
fillMode: Image.PreserveAspectFit |
| 52 |
sourceSize.width: 1535 |
| 53 |
sourceSize.height: 2244 |
| 54 |
} |
| 55 |
} |
| 56 |
Rectangle{ |
| 57 |
id: rect1_0 |
| 58 |
width: 160 |
| 59 |
height: 160 |
| 60 |
x: 0 |
| 61 |
y: 160 |
| 62 |
Text{ |
| 63 |
text: "Preserve\naspect\ncrop" |
| 64 |
x: 20 |
| 65 |
y: 20 |
| 66 |
color: "red" |
| 67 |
font.family: "Helvetica" |
| 68 |
font.pointSize: 24 |
| 69 |
z: 1 |
| 70 |
} |
| 71 |
Image{ |
| 72 |
id: bwLinear3 |
| 73 |
width: 160 |
| 74 |
height: 160 |
| 75 |
source: "../shared/bw_1535x2244.jpg" |
| 76 |
fillMode: Image.PreserveAspectCrop |
| 77 |
sourceSize.width: 1535 |
| 78 |
sourceSize.height: 2244 |
| 79 |
} |
| 80 |
|
| 81 |
} |
| 82 |
Rectangle{ |
| 83 |
id: rect1_1 |
| 84 |
width: 160 |
| 85 |
height: 160 |
| 86 |
x: 180 |
| 87 |
y: 160 |
| 88 |
Text{ |
| 89 |
text: "Tile" |
| 90 |
x: 20 |
| 91 |
y: 20 |
| 92 |
color: "red" |
| 93 |
font.family: "Helvetica" |
| 94 |
font.pointSize: 24 |
| 95 |
z: 1 |
| 96 |
} |
| 97 |
Image{ |
| 98 |
id: bwLinear4 |
| 99 |
width: 160 |
| 100 |
height: 160 |
| 101 |
source: "../shared/bw_1535x2244.jpg" |
| 102 |
fillMode: Image.Tile |
| 103 |
sourceSize.width: 1535 |
| 104 |
sourceSize.height: 2244 |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
Rectangle{ |
| 109 |
id: rect2_0 |
| 110 |
width: 160 |
| 111 |
height: 160 |
| 112 |
x: 0 |
| 113 |
y: 320 |
| 114 |
Text{ |
| 115 |
text: "Tile\nvertically" |
| 116 |
x: 20 |
| 117 |
y: 20 |
| 118 |
color: "red" |
| 119 |
font.family: "Helvetica" |
| 120 |
font.pointSize: 24 |
| 121 |
z: 1 |
| 122 |
} |
| 123 |
Image{ |
| 124 |
id: bwLinear5 |
| 125 |
width: 160 |
| 126 |
height: 160 |
| 127 |
source: "../shared/bw_1535x2244.jpg" |
| 128 |
fillMode: Image.TileVertically |
| 129 |
sourceSize.width: 1535 |
| 130 |
sourceSize.height: 2244 |
| 131 |
} |
| 132 |
} |
| 133 |
Rectangle{ |
| 134 |
id: rect2_1 |
| 135 |
width: 160 |
| 136 |
height: 160 |
| 137 |
x: 180 |
| 138 |
y: 320 |
| 139 |
Text{ |
| 140 |
text: "Tile horizontally" |
| 141 |
x: 20 |
| 142 |
y: 20 |
| 143 |
color: "red" |
| 144 |
font.family: "Helvetica" |
| 145 |
font.pointSize: 24 |
| 146 |
z: 1 |
| 147 |
} |
| 148 |
Image{ |
| 149 |
id: bwLinear6 |
| 150 |
width: 160 |
| 151 |
height: 160 |
| 152 |
source: "../shared/bw_1535x2244.jpg" |
| 153 |
fillMode: Image.TileHorizontally |
| 154 |
sourceSize.width: 1535 |
| 155 |
sourceSize.height: 2244 |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
} |
| 165 |
|