ImageGear Professional for Windows ActiveX
Aging Method

Description:

Applies an aging effect to make an image look older. The effect can adjust image saturation and contrast, and add noise and random vertical lines to the image.

Syntax:

Sub Aging(Page As IGPage, Saturation As Single, Deviation As
Single, ImageContrast As Single, LineContrast As Single,
LineDensity As Long, AgingColor As IGDataArray)

Parameters:

Name Description
Page IGPage Object to which to apply the effect.
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.
AgingColor An array containing IG_DATA_DOUBLE values. 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 which represent color adjustment factors, corresponding to image color space. Each element ranges from -1 to 1, where a value of 0 represents no change to the image's color component, -1 represents completely change to the color component's minimum value, and 1 represents complete change to the color component's maximum value. Array length must be equal to number of image channels.

Return Value:

N/A

Bits Per Pixel:

RGB, non bitonal Gray and indexed with grayscale palette. Does not support Grayscale with LUT.

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback