C# Class Bloom.Edit.JpegWarningDialog

Inheritance: System.Windows.Forms.Form
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
JpegWarningDialog ( ) : System
ShouldWarnAboutJpeg ( Image image ) : System.Boolean

Tells whether the supplied image looks suspiciously like a file that would be better off as a PNG. Not particularly smart, but fast.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
GetIsGrey ( Bitmap bmp, int lineNumber ) : bool
GetNumberOfColors ( Bitmap bmp, int lineNumber ) : int
GetPercentWhiteOfLine ( Bitmap bmp, int lineNumber ) : double
HasLotsOfColor ( Bitmap bmp ) : bool
HasLotsOfWhiteSpace ( Bitmap bmp ) : bool
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsGreyScale ( Bitmap bmp ) : bool
_okButton_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

JpegWarningDialog() public method

public JpegWarningDialog ( ) : System
return System

ShouldWarnAboutJpeg() public static method

Tells whether the supplied image looks suspiciously like a file that would be better off as a PNG. Not particularly smart, but fast.
public static ShouldWarnAboutJpeg ( Image image ) : System.Boolean
image Image
return System.Boolean