private void CheckSourceFormat( PixelFormat pixelFormat ) { if ( !FormatTranslations.ContainsKey( pixelFormat ) ) throw new UnsupportedImageFormatException( "Source pixel format is not supported by the filter." ); } }