// HSL filtering private void filteringHslFiltersItem_Click( object sender, System.EventArgs e ) { if ( image.PixelFormat != PixelFormat.Format24bppRgb ) { MessageBox.Show( "HSL filtering is available for color images only", "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation ); return; } HSLFilteringForm form = new HSLFilteringForm( ); form.Image = image; if ( form.ShowDialog( ) == DialogResult.OK ) { ApplyFilter( form.Filter ); } }
// HSL filtering private void filteringHslFiltersItem_Click( object sender, System.EventArgs e ) { if ( CheckIfColor( "HSL filtering" ) ) { HSLFilteringForm form = new HSLFilteringForm( ); form.Image = image; if ( form.ShowDialog( ) == DialogResult.OK ) { ApplyFilter( form.Filter ); } } }