gammaadjust
importstatement: import qtgraphicaleffects 1.0
since: qtgraphicaleffects 1.0
inherits: item
properties
cached :bool
gamma : real
source :variant
detaileddescription
gammaadjust應用於每個畫素,它使用預定義的曲線作為冥律分布表示式。源影響
實現**:
importqtquick 2.0
importqtgraphicaleffects 1.0
item
gammaadjust
}propertydocumentation
cached :bool
gamma : real
根據方程,每個畫素的亮度變化的變化因子。方程為:
luminance =pow(original_luminance, 1.0 / gamma); // 亮度被假定在0.0和0.1之間
設定gamma值小於1.0使變暗,大於1.0,變亮。值在0.0(最暗)到inf(最亮)之間,預設為1.0(不改變)
gamma的影響
gamma: 0.5
gamma: 1.0
gamma: 2.0
影象上的亮度曲線
red curve: default gamma (1.0)
x-axis: pixel original luminance
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...