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