Gets and sets the method/algorithm of contrast to employ for the Contrast method.
Read-write property
Visual Basic |
---|
Public Property ContrastMethod As enumContrastMethod |
An enumContrastMethod value which determines the method/algorithm of contrast to use.
The default value for this property is DefaultContrast (0), meaning the algorithm used is an image independent Arctan curve type and prevents clipping. If the value of ContrastMethod = ViewCompatibleContrast (1), then the Contrast algorithm is an image dependent linear curve type that does not prevent clipping. This ensures backward compatibility with existing applications. It also allows the application to get and save the same image as the viewer, when ViewContrast is applied. For this reason, unless the application has a specific need to use the DefaultContrast method, it is recommended the application set this value to ViewCompatibleContrast.