ImageGear .NET
Aging Method




Image to apply aging effect to.
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.
Amount of noise to add to the image. The value should range from 0 to 50.
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.
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.
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.
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.
Applies an aging effect to make an image look older.
Syntax
'Declaration
 
Public Shared Sub Aging( _
   ByVal page As ImGearRasterPage, _
   ByVal saturation As Double, _
   ByVal deviation As Double, _
   ByVal imageContrast As Double, _
   ByVal lineContrast As Double, _
   ByVal lineDensity As Integer, _
   ByVal backgroundColor() 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 page,
   double saturation,
   double deviation,
   double imageContrast,
   double lineContrast,
   int lineDensity,
   double[] backgroundColor
)
public: static void Aging( 
   ImGearRasterPage* page,
   double saturation,
   double deviation,
   double imageContrast,
   double lineContrast,
   int lineDensity,
   double[]* backgroundColor
) 
public:
static void Aging( 
   ImGearRasterPage^ page,
   double saturation,
   double deviation,
   double imageContrast,
   double lineContrast,
   int lineDensity,
   array<double>^ backgroundColor
) 

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.
Remarks
The effect can adjust image saturation and contrast, and add noise and random vertical lines to the image.
See Also

Reference

ImGearEffects Class
ImGearEffects Members
ImGearRasterPage Class

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback