Start intensity for the shadow range. Valid values are from 0.0 to
shadowEnd. Set this parameter to a non-zero value if there are no black pixels in the image.
End intensity for the shadow range. Valid values are from 0.0 to 1.0, but
the typical range is between 0.0 and 0.5. ShadowStart and shadowEnd parameters define the range of
pixels that will be brightened.
Maximum brightness for brightened shadow pixels, at which they will be
included into the result image. Brighter pixels will be blended as semi-transparent with the result image.
Makes the image look as if it was taken in a High Density Range mode, by adding bright
colors to image edges.
Syntax
'Declaration
Public Shared Sub HighDensityRangeEffect( _
ByVal As ImGearRasterPage, _
ByVal shadowStart As Double, _
ByVal shadowEnd As Double, _
ByVal shadowThreshold As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double _
)
'Usage
Dim page As ImGearRasterPage
Dim shadowStart As Double
Dim shadowEnd As Double
Dim shadowThreshold As Double
Dim highlightStart As Double
Dim highlightEnd As Double
Dim highlightThreshold As Double
Dim midtoneStart As Double
Dim midtoneEnd As Double
Dim radius As Double
ImGearEffects.HighDensityRangeEffect(page, shadowStart, shadowEnd, shadowThreshold, highlightStart, highlightEnd, highlightThreshold, midtoneStart, midtoneEnd, radius)
Parameters
- page
- Page to process.
- shadowStart
- Start intensity for the shadow range. Valid values are from 0.0 to
shadowEnd. Set this parameter to a non-zero value if there are no black pixels in the image.
- shadowEnd
- End intensity for the shadow range. Valid values are from 0.0 to 1.0, but
the typical range is between 0.0 and 0.5. ShadowStart and shadowEnd parameters define the range of
pixels that will be brightened.
- shadowThreshold
- Maximum brightness for brightened shadow pixels, at which they will be
included into the result image. Brighter pixels will be blended as semi-transparent with the result image.
- highlightStart
- Start intensity for the highlight range. Valid values are from 0.0 to
1.0, but the typical range is between 0.5 and 1.0. HighlightStart and highlightEnd parameters define
the range of pixels that will be darkened.
- highlightEnd
- End intensity for the highlight range. Valid values are from
highlightStart to 1.0. Set this parameter to a value that is less than 1.0 if there are no pixels
with maximal brightness in the image.
- highlightThreshold
- Minimum brightness for darkened highlight pixels, at which they
will be included into the result image. Darker pixels will be blended as semi-transparent with the
result image.
- midtoneStart
- Start intensity for the midtone range. Valid values are from 0.0 to 1.0,
but the typical range is between 0.0 and 0.5.
- midtoneEnd
- End intensity for the midtone range. Valid values are from 0.0 to 1.0, but
the typical range is between 0.5 and 1.0. MidtoneStart and midtoneEnd parameters define increase
contrast for the midtone range.
- radius
- Radius that defines the width of the edge between highlight and midtone areas.
Smaller values make the details sharper, but may result in too frequent changes between shadow and
highlight areas, actually reducing image contrast and resulting in possible artifacts. Greater
values make shadow and highlight areas bigger and smoother, but may result in halos between the
shadow and highlight areas. Greater values also result in longer processing. Useful values are in
range from 1.0 to 1/4 of the image's smaller dimension.
See Also