huesaturation
importstatement: import qtgraphicaleffects 1.0
since: qtgraphicaleffects 1.0
inherits: item
properties
cached :bool
hue : real
lightness :real
saturation :real
source :variant
detaileddescription
huesaturation類似於colorize影響,但色相和飽和度屬性的處理不同。huesaturation影響總是轉換原始的色調、飽和度和亮度,而不是設定它們。源影響
示例**:
importqtquick 2.0
importqtgraphicaleffects 1.0
item
huesaturation
}propertydocumentation
cached :bool
hue : real
定義了附加到源色調上的色調值。值在-1.0(減少)到1.0(增加)。預設為0.0。
色調的影響
hue: -0.3
hue: 0.0
hue: 0.3
saturation: 0
saturation: 0
saturation: 0
lightness: 0
lightness: 0
lightness: 0
lightness :real
附加到源亮度上的亮度值。值在-1.0(減少)到1.0(增加)。預設為0.0。
亮度的影響
lightness: -0.5
lightness: 0.0
lightness: 0.5
hue: 0
hue: 0
hue: 0
saturation: 0
saturation: 0
saturation: 0
saturation :real
附加到源飽和度上的飽和度值。值在-1.0(減少)到1.0(增加)。預設為0.0。
飽和度的影響
saturation: -0.8
saturation: 0.0
saturation: 1.0
hue: 0
hue: 0
hue: 0
lightness: 0
lightness: 0
lightness: 0
source :variant
源。注意它不支援影響自身,所以不能設定父到source。
QML型別說明 AnimatedSprite
animatedsprite importstatement import qtquick2.2 inherits item properties currentframe int framecount int frameduration int frameheight int framerate ...
QML型別說明 AudioSample
audiosample importstatement import qtaudioengine1.0 since qt 5.0 inherits item properties loaded bool name string preloaded bool signals loadedchanged...
QML型別說明 BluetoothService
bluetoothservice importstatement import qtbluetooth 5.2 since qt 5.2 properties deviceaddress string devicename string registered string servicedescri...