ColorCurveParams type
The parameters of a ColorCurve effect: the kind of adjustment, the channel and the strength.
The type mirrors the GDI+ CurveAdjustments parameters. A ColorCurve takes it in its constructor and in its Parameters property.
Fields
| Field | Type | Meaning |
|---|---|---|
| adjustment | CurveAdjustments | The kind of adjustment. |
| channel | CurveChannel | The channel that is adjusted: all, or one of red, green and blue. |
| value | Long | The strength. The range depends on adjustment, as the page of ColorCurve lists. |
Properties
adjustValue is another name for value: the name of the C++ structure. It can be read and written.
Creating
Syntax: params = ColorCurveParams( adjustment, channel, value )
- adjustment, channel, value
- required Values for the fields.
Dim user As GdiPlusUser = GdiPlusUser()
Dim p As ColorCurveParams = ColorCurveParams(AdjustContrast, CurveChannelBlue, 9)
Debug.Print p.adjustment & " " & p.channel & " " & p.value & " " & p.adjustValue
p.adjustValue = 11
Debug.Print p.value
' Output:
' 2 3 9 9
' 11
See Also
- CurveAdjustments – Microsoft’s documentation of the GDI+ enumeration
- ColorCurve class