C# Class Fusion8.Cropper.MainCropForm

Represents a form for marking off the cropped area of the desktop.
Inheritance: CropForm
ファイルを表示 Open project: enriquein/Cropper Class Usage Examples

Private Properties

Property Type Description
AddOpacitySubMenu void
AddOutputSubMenus void
AddSubMenuItem System.Windows.Forms.MenuItem
AddTopLevelMenuItem System.Windows.Forms.MenuItem
AddTopLevelMenuItems void
AdjustPosition void
AdjustSize void
ApplyConfiguration void
CalculateNewFormLocation Point
CenterSize void
CheckForDialogClosing void
ClearImageFormatChecks void
CycleColors void
CycleFormVisibility void
CycleSizes void
DialogClose void
DialogCloseIfNeeded void
DialogShow void
DrawAbout void
DrawDialog void
DrawHelp void
EnsureMinimumDialogWidth void
GetResizeRegion ResizeRegion
HandleImageFormatClick void
HandleKeyDown void
HandleMenuAboutClick void
HandleMenuBrowseClick void
HandleMenuExitClick void
HandleMenuHelpClick void
HandleMenuHelpWebClick void
HandleMenuInvertClick void
HandleMenuOnTopClick void
HandleMenuOpacityClick void
HandleMenuOptionsClick void
HandleMenuResetClick void
HandleMenuShowHideClick void
HandleMenuSizeClick void
HandleMenuSizeCurrentClick void
HandleMenuThumbnailClick void
HandleMouseDown void
HandleMouseMove void
HandleMouseUp void
HandleNotifyIconMouseUp void
HandleResize void
HandleThumbResize void
IsInResizeArea bool
IsInThumbnailResizeArea bool
IsMouseInRectangle bool
LimitMaxWorkingSet bool
PaintCrosshairs void
PaintGrabber void
PaintHeightString void
PaintMainFormArea void
PaintOutputFormat void
PaintSizeTabs void
PaintThumbnailIndicator void
PaintUI void
PaintWidthString void
RefreshMenuItems void
ResetForm void
ResizeThumbnail void
SaveConfiguration void
SetColors void
SetResizeCursor void
SetUpForm void
SetUpMenu void
ShowError void
ShowMessage void
ShowOptionsDialog void
TakeScreenShot void

Public Methods

Method Description
MainCropForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnClosed ( EventArgs e ) : void
OnClosing ( CancelEventArgs e ) : void

Raises the Form.Closing event.

OnDoubleClick ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.DoubleClick event.

OnHotKeyPress ( KeyEventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void

Raises the Form.KeyDown event.

OnLoad ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void

Raises the E:System.Windows.Forms.Control.MouseDown event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the E:System.Windows.Forms.Control.MouseMove event.

OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaintLayer ( Fusion8.Cropper.PaintLayerEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Method Description
AddOpacitySubMenu ( ) : void
AddOutputSubMenus ( ) : void
AddSubMenuItem ( Menu parent, string text, EventHandler handler ) : MenuItem
AddTopLevelMenuItem ( string text, EventHandler handler ) : MenuItem
AddTopLevelMenuItems ( ) : void
AdjustPosition ( int interval, Keys keys ) : void
AdjustSize ( int interval, Keys keys ) : void
ApplyConfiguration ( ) : void
CalculateNewFormLocation ( ) : Point
CenterSize ( int interval ) : void
CheckForDialogClosing ( ) : void
ClearImageFormatChecks ( Menu menuItem ) : void
CycleColors ( ) : void
CycleFormVisibility ( bool allowHide ) : void
CycleSizes ( ) : void
DialogClose ( ) : void
DialogCloseIfNeeded ( ) : void
DialogShow ( Action setTheFlag ) : void
DrawAbout ( Graphics g ) : void
DrawDialog ( Graphics g, string title, string text ) : void
DrawHelp ( Graphics g ) : void
EnsureMinimumDialogWidth ( ) : void
GetResizeRegion ( ) : ResizeRegion
HandleImageFormatClick ( object sender, Fusion8.Cropper.Extensibility.ImageFormatEventArgs e ) : void
HandleKeyDown ( KeyEventArgs e ) : void
HandleMenuAboutClick ( object sender, EventArgs e ) : void
HandleMenuBrowseClick ( object sender, EventArgs e ) : void
HandleMenuExitClick ( object sender, EventArgs e ) : void
HandleMenuHelpClick ( object sender, EventArgs e ) : void
HandleMenuHelpWebClick ( object sender, EventArgs e ) : void
HandleMenuInvertClick ( object sender, EventArgs e ) : void
HandleMenuOnTopClick ( object sender, EventArgs e ) : void
HandleMenuOpacityClick ( object sender, EventArgs e ) : void
HandleMenuOptionsClick ( object sender, EventArgs e ) : void
HandleMenuResetClick ( object sender, EventArgs e ) : void
HandleMenuShowHideClick ( object sender, EventArgs e ) : void
HandleMenuSizeClick ( object sender, EventArgs e ) : void
HandleMenuSizeCurrentClick ( object sender, EventArgs e ) : void
HandleMenuThumbnailClick ( object sender, EventArgs e ) : void
HandleMouseDown ( MouseEventArgs e ) : void
HandleMouseMove ( MouseEventArgs e ) : void
HandleMouseUp ( ) : void
HandleNotifyIconMouseUp ( object sender, MouseEventArgs e ) : void

Handles the MouseUp event of the NotifyIcon control.

HandleResize ( ) : void
HandleThumbResize ( ) : void
IsInResizeArea ( ) : bool
IsInThumbnailResizeArea ( ) : bool
IsMouseInRectangle ( Rectangle rectangle ) : bool
LimitMaxWorkingSet ( ) : bool

Determines if the MaxWorkingSet should be limited.

This is only used to prevent an exception in Windows 2000 when the user is not part of the BUILTIN\Administrators group. This can be removed when Windows 2000 is no longer supported (July 13, 2010)

PaintCrosshairs ( Graphics graphics, int paintWidth, int paintHeight ) : void
PaintGrabber ( Graphics graphics, Point grabberStart ) : void
PaintHeightString ( Graphics graphics, int paintHeight ) : void
PaintMainFormArea ( Graphics graphics, Rectangle cropArea ) : void
PaintOutputFormat ( Graphics graphics, int paintWidth, int paintHeight ) : void
PaintSizeTabs ( Graphics graphics, Point tabPoints ) : void
PaintThumbnailIndicator ( Graphics graphics, int paintWidth, int paintHeight ) : void
PaintUI ( Graphics graphics ) : void
PaintWidthString ( Graphics graphics, int paintWidth ) : void
RefreshMenuItems ( ) : void
ResetForm ( ) : void
ResizeThumbnail ( int interval ) : void
SaveConfiguration ( ) : void
SetColors ( ) : void
SetResizeCursor ( ResizeRegion region ) : void
SetUpForm ( ) : void
SetUpMenu ( ) : void

Setup the main context menu

ShowError ( string text, string caption ) : void
ShowMessage ( string text, string caption, MessageBoxIcon icon ) : void
ShowOptionsDialog ( ) : void
TakeScreenShot ( ScreenShotBounds bounds ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MainCropForm() public method

public MainCropForm ( ) : System
return System

OnClosed() protected method

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnClosing() protected method

Raises the Form.Closing event.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs A that contains the event data.
return void

OnDoubleClick() protected method

Raises the E:System.Windows.Forms.Control.DoubleClick event.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnHotKeyPress() protected method

protected OnHotKeyPress ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyDown() protected method

Raises the Form.KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

Raises the E:System.Windows.Forms.Control.MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseMove() protected method

Raises the E:System.Windows.Forms.Control.MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaintLayer() protected method

protected OnPaintLayer ( Fusion8.Cropper.PaintLayerEventArgs e ) : void
e Fusion8.Cropper.PaintLayerEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void