Instantiates a new BrightnessContrastOptions object with the specified property values.
Syntax
'Declaration
Public Function New( _
ByVal As BrightnessContrastAdjustment, _
ByVal As Integer, _
ByVal As Byte, _
ByVal As Byte, _
ByVal As Byte, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Byte, _
ByVal As Byte, _
ByVal As Byte _
)
'Usage
Dim adjustment As BrightnessContrastAdjustment
Dim quality As Integer
Dim targetBrightness As Byte
Dim targetContrast As Byte
Dim targetVariance As Byte
Dim minimumPercentile As Integer
Dim maximumPercentile As Integer
Dim contrastLimitDark As Byte
Dim contrastLimitMiddle As Byte
Dim contrastLimitLight As Byte
Dim instance As New BrightnessContrastOptions(adjustment, quality, targetBrightness, targetContrast, targetVariance, minimumPercentile, maximumPercentile, contrastLimitDark, contrastLimitMiddle, contrastLimitLight)
public BrightnessContrastOptions(
BrightnessContrastAdjustment ,
int ,
byte ,
byte ,
byte ,
int ,
int ,
byte ,
byte ,
byte
)
public: BrightnessContrastOptions(
BrightnessContrastAdjustment ,
int ,
byte ,
byte ,
byte ,
int ,
int ,
byte ,
byte ,
byte
)
public:
BrightnessContrastOptions(
BrightnessContrastAdjustment ,
int ,
byte ,
byte ,
byte ,
int ,
int ,
byte ,
byte ,
byte
)
Parameters
- adjustment
- Type of contrast adjustment to perform on the image.
- quality
- Amount of effort to expend analyzing the image to determine contrast.
- targetBrightness
- Target brightness level for background of adjusted image.
- targetContrast
- Target contrast between foreground and background for the adjusted image.
- targetVariance
- Largest possible variance in brightness across the image.
- minimumPercentile
- Percentile level for lowest brightness that will be adjusted.
- maximumPercentile
- Percentile level for highest brightness that will be adjusted.
- contrastLimitDark
- Maximum contrast change for dark pixels.
- contrastLimitMiddle
- Maximum contrast change for middle-range pixels.
- contrastLimitLight
- Maximum contrast change for light pixels.
See Also