ImageMan ActiveX Control Version 8
Contrast Method
See Also  Send comments on this topic.
Percentage
Specifies the percentage of color difference to adjust the contrast by
Median
Specifies the median value from which to base the color differences. Specifying –1 for the Median value will cause the method to calculate the median based on the actual image colors.
Channel

The Channel parameter specifies which color channels the contrast enhancement will be performed on. You can specify:

Setting

Description

1

Blue

2

Green

3

Blue / Green

4

Red

5

Blue/Red

6

Green/Red

7

All

Glossary Item Box

Description

Adjusts the contrast of the current image.

Syntax

Visual Basic
Public Sub Contrast( _
   ByVal Percentage As Integer, _
   ByVal Median As Integer, _
   ByVal Channel As Channels _
) 

Parameters

Percentage
Specifies the percentage of color difference to adjust the contrast by
Median
Specifies the median value from which to base the color differences. Specifying –1 for the Median value will cause the method to calculate the median based on the actual image colors.
Channel

The Channel parameter specifies which color channels the contrast enhancement will be performed on. You can specify:

Setting

Description

1

Blue

2

Green

3

Blue / Green

4

Red

5

Blue/Red

6

Green/Red

7

All

Remarks

This Method is for 16, 24, and 32 bit images, only.

See Also

© 2014 Data Techniques Inc. All Rights Reserved.