-
Notifications
You must be signed in to change notification settings - Fork 1
/
Preview.qml
81 lines (64 loc) · 1.95 KB
/
Preview.qml
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
import QtQuick 2.9
import QtGraphicalEffects 1.0
Item {
property int effect:0
Rectangle {
anchors.fill:parent
clip:true
//color:"#9d9d9d"
Image {
id:baseImage
//anchors.fill:parent
anchors.centerIn: parent
width:parent.width * 0.98
height:parent.height * 0.98
source:thesource
fillMode:Image.PreserveAspectCrop
}
/* Colorize {
visible:if(effect == 1) {true} else {false}
anchors.fill: baseImage
source: baseImage
hue: 0.0
saturation: 0.0
lightness: -0.1
}
Colorize {
visible:if(effect == 2) {true} else {false}
anchors.fill: baseImage
source: baseImage
hue: 0.15
saturation: 0.7
lightness: -0.4
}
Colorize {
visible:if(effect == 3) {true} else {false}
anchors.fill: baseImage
source: baseImage
hue: 0.15
saturation: 0.7
lightness: -0.4
}
RadialGradient {
id:radialWashout
anchors.fill: baseImage
visible:if(effect == 3) {true} else {false}
gradient: Gradient {
GradientStop { position: 0.0; color: Qt.rgba(0,0,0,0) }
GradientStop { position: 0.7; color: Qt.rgba(0.9,0.9,0.9,0.8) }
}
}
Desaturate {
visible:if(effect == 4) {true} else {false}
anchors.fill: baseImage
source:baseImage
desaturation: 0.7
} */
}
/*Image {
anchors.centerIn:parent
width:parent.width * 1.03
height:parent.height * 1.03
source:"graphics/imageborder.png"
} */
}