Hue modifier.

The filter operates in HSL color space and updates pixels' hue values setting it to the specified value (luminance and saturation are kept unchanged). The result of the filter looks like the image is observed through a glass of the given color.

The filter accepts 24 and 32 bpp color images for processing.

Sample usage:

// create filter HueModifier filter = new HueModifier( 180 ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance: BaseInPlacePartialFilter
Example #1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb32bpp;
     Af.HueModifier newFilter = new Af.HueModifier();
     newFilter.Hue = (int)Remap(hue, 0, 359);
     imageFilter   = newFilter;
 }