AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : AdjustRGB Method |
Visual Basic |
---|
Public Sub AdjustRGB( _ ByVal IPAdjustType As Integer, _ ByVal IPAdjustRed As Integer, _ ByVal IPAdjustGreen As Integer, _ ByVal IPAdjustBlue As Integer _ ) |
When IPadjustType = AsPercent (0), valid red, green, and blue values are between -100 and 100 (made as percent).
When IPadjustType = InUnits (1), valid RGB values are between -255 and 255 (made in units).
Since pixel values must fall within the range 0-255, resulting pixel values less than 0 are set to 0 and resulting pixel values greater than 255 are set to 255.
Sepia sample
The following example uses the AdjustRGB method and the ColorDepth method to convert an image to Sepia.
VB6 (Visual Basic) | Copy Code | |
---|---|---|
|