Exchanges two colors in the image.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
Parameters
- image
- Type: System.Drawing..::.Image
Image.
- oldColor
- Type: System.Drawing..::.Color
The first color.
- newColor
- Type: System.Drawing..::.Color
The second color
Return Value
A new bitmap Bitmap with recolored colors.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | image is nullNothingnullptra null reference (Nothing in Visual Basic). |