Adjusts image brightness and contrast in single pass.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub BrightnessContrast ( _ channels As Boolean(), _ brightnessAmount As Single, _ contrastAmount As Single _ )
Type: System.Boolean []
Array of flags specifying what channels to apply effect at. If array item is true, transform will be applied at channel with appropriate index. Otherwise this channel is skipped.Type: System.Single
Value in range [-1, 1] that specifies brightness modifier.Type: System.Single
Value in range [-1, 1] that specifies contrast modifier.You can also use BrightnessContrast class to apply this correction.
Both brightnessAmount and contrastAmount are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.