Applies an aging effect to make an image look older.
Syntax
'Declaration
Public Shared Sub Aging( _
ByVal As ImGearRasterPage, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Integer, _
ByVal () As Double _
)
'Usage
Dim page As ImGearRasterPage
Dim saturation As Double
Dim deviation As Double
Dim imageContrast As Double
Dim lineContrast As Double
Dim lineDensity As Integer
Dim backgroundColor() As Double
ImGearEffects.Aging(page, saturation, deviation, imageContrast, lineContrast, lineDensity, backgroundColor)
public: static void Aging(
ImGearRasterPage* ,
double ,
double ,
double ,
double ,
int ,
double[]*
)
Parameters
- page
- Image to apply aging effect to.
- saturation
- Adjusts color saturation of the original image. The value should range from
0 to 1, where 0 removes all color from the image, and 1 does not adjust color saturation.
- deviation
- Amount of noise to add to the image. The value should range from 0 to 50.
- imageContrast
- Adjusts image contrast. The value should range from 0 to 1, where 0 is
minimum contrast, and 1 does not adjust contrast. Values less than 0 produce inverted contrast.
- lineContrast
- Adjusts contrast of random vertical lines added to the image. The value
should range from -1 to 1, where -1 is completely black lines, 0 is invisible lines, and 1 is
completely white lines. Values between 0 and 1, for example, blend line color between original image
pixel colors and white.
- lineDensity
- Adjusts density (quantity) of random vertical lines added to the image.
The value should range from 0 to the width of the image in pixels, where 0 would add no lines, and
the width of the image in pixels would fill the image with lines.
- backgroundColor
- Adjusts color tint of the image. The color of the image will be tinted
according to the values of the array. The array consists of three elements that represent red,
green, and blue adjustment factors. Each element ranges from -1 to 1, where a value of 0 represents
no change to the image's color component, -1 represents complete change to the color component's
minimum value, and 1 represents complete change to the color component's maximum value.
See Also