QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCColoredImage.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import Qt5Compat.GraphicalEffects
4
5import QGroundControl
6import QGroundControl.Controls
7
8Item {
9 property color color: "white" // Image color
10
11 property alias asynchronous: image.asynchronous
12 property alias cache: image.cache
13 property alias fillMode: image.fillMode
14 property alias horizontalAlignment: image.horizontalAlignment
15 property alias mirror: image.mirror
16 property alias paintedHeight: image.paintedHeight
17 property alias paintedWidth: image.paintedWidth
18 property alias progress: image.progress
19 property alias mipmap: image.mipmap
20 property alias source: image.source
21 property alias sourceSize: image.sourceSize
22 property alias status: image.status
23 property alias verticalAlignment: image.verticalAlignment
24
25 width: image.width
26 height: image.height
27
28 Image {
29 id: image
30 smooth: true
31 mipmap: true
32 antialiasing: true
33 visible: false
34 fillMode: Image.PreserveAspectFit
35 anchors.fill: parent
36 sourceSize.height: height
37 }
38
39 ColorOverlay {
40 anchors.fill: image
41 source: image
42 color: parent.color
43 }
44}