// Adjust saturation using HSL private void Saturation( ) { if ( image.PixelFormat != PixelFormat.Format24bppRgb ) { MessageBox.Show( "Saturation filter using HSL color space is available for color images only", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation ); return; } SaturationForm form = new SaturationForm( ); form.Image = image; if ( form.ShowDialog( ) == DialogResult.OK ) { ApplyFilter( form.Filter ); } }
// Adjust saturation using HSL private void Saturation( ) { if ( CheckIfColor( "Saturation filter using HSL color space" ) ) { SaturationForm form = new SaturationForm( ); form.Image = image; if ( form.ShowDialog( ) == DialogResult.OK ) { ApplyFilter( form.Filter ); } } }