aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/images/fill_mode.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/scenegraph/data/images/fill_mode.qml')
-rw-r--r--tests/baseline/scenegraph/data/images/fill_mode.qml165
1 files changed, 165 insertions, 0 deletions
diff --git a/tests/baseline/scenegraph/data/images/fill_mode.qml b/tests/baseline/scenegraph/data/images/fill_mode.qml
new file mode 100644
index 0000000000..d391cd73f9
--- /dev/null
+++ b/tests/baseline/scenegraph/data/images/fill_mode.qml
@@ -0,0 +1,165 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 320
+ height: 480
+ smooth: true
+ Rectangle{
+ id: rect0_0
+ width: 160
+ height: 160
+ x: 0
+ y: 0
+ Text{
+ text: "Stretch"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear1
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+ }
+ Rectangle{
+ id: rect0_1
+ width: 160
+ height: 160
+ x: 180
+ y: 0
+ Text{
+ text: "Preserve\naspect\nfit"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear2
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ fillMode: Image.PreserveAspectFit
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+ }
+ Rectangle{
+ id: rect1_0
+ width: 160
+ height: 160
+ x: 0
+ y: 160
+ Text{
+ text: "Preserve\naspect\ncrop"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear3
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ fillMode: Image.PreserveAspectCrop
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+
+ }
+ Rectangle{
+ id: rect1_1
+ width: 160
+ height: 160
+ x: 180
+ y: 160
+ Text{
+ text: "Tile"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear4
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ fillMode: Image.Tile
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+ }
+
+ Rectangle{
+ id: rect2_0
+ width: 160
+ height: 160
+ x: 0
+ y: 320
+ Text{
+ text: "Tile\nvertically"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear5
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ fillMode: Image.TileVertically
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+ }
+ Rectangle{
+ id: rect2_1
+ width: 160
+ height: 160
+ x: 180
+ y: 320
+ Text{
+ text: "Tile horizontally"
+ x: 20
+ y: 20
+ color: "red"
+ font.family: "Helvetica"
+ font.pointSize: 24
+ z: 1
+ }
+ Image{
+ id: bwLinear6
+ width: 160
+ height: 160
+ source: "../shared/bw_1535x2244.jpg"
+ fillMode: Image.TileHorizontally
+ sourceSize.width: 1535
+ sourceSize.height: 2244
+ }
+ }
+
+
+
+
+
+
+}
+