void AdjustHue( float angle )

book_4_sparkGenerated
code_blocksInput

Description

The AdjustHue method is used to modify the hue of the entire bitmap by a specified angle. This method allows you to shift the colors of the bitmap along the color wheel, effectively changing the overall color tone of the image.

Usage

To use the AdjustHue method, you need to have an instance of the Bitmap class. Call the method with a single parameter, angle, which represents the degree of hue adjustment. The angle is a floating-point value, where positive values shift the hue clockwise and negative values shift it counterclockwise.

Example

// Create a new Bitmap instance
Bitmap bitmap = new Bitmap();

// Adjust the hue of the bitmap by 45 degrees
bitmap.AdjustHue(45.0f);

// Adjust the hue of the bitmap by -30 degrees
bitmap.AdjustHue(-30.0f);