Warning, /webapps/qmlonline/qml/examples/brightnesscontrast.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.12
0002 import QtGraphicalEffects 1.12
0003 import QtQuick.Controls 2.12
0004 import QtQuick.Layouts 1
0005
0006 Item {
0007 anchors.fill: parent
0008
0009 Image {
0010 id: bug
0011 source: "https://live.staticflickr.com/2709/4163641325_8f60d4f75a_m.jpg"
0012 smooth: true
0013 visible: false
0014 }
0015
0016 BrightnessContrast {
0017 anchors.fill: parent
0018 source: bug
0019 brightness: sliderBright.value
0020 contrast: sliderContrast.value
0021 }
0022
0023 ColumnLayout {
0024 anchors.left: parent.left
0025 anchors.right: parent.right
0026 anchors.bottom: parent.bottom
0027
0028 RowLayout {
0029 Label {
0030 text: "Brightness [" + Math.round(sliderBright.value*100) + "]"
0031 }
0032 Slider {
0033 id: sliderBright
0034 Layout.fillWidth: true
0035 }
0036 }
0037
0038 RowLayout {
0039 Label {
0040 text: "Contrast [" + Math.round(sliderContrast.value*100) + "]"
0041 }
0042 Slider {
0043 id: sliderContrast
0044 Layout.fillWidth: true
0045 }
0046 }
0047 }
0048 }