C# Class Fusion8.Cropper.MainCropForm

Represents a form for marking off the cropped area of the desktop.
Inheritance: CropForm
Afficher le fichier Open project: enriquein/Cropper Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode Description
MainCropForm ( ) : System

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MainCropForm() public méthode

public MainCropForm ( ) : System
Résultat System

OnClosed() protected méthode

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnClosing() protected méthode

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

OnDoubleClick() protected méthode

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

OnHotKeyPress() protected méthode

protected OnHotKeyPress ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyDown() protected méthode

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

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseDown() protected méthode

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

OnMouseMove() protected méthode

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

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseWheel() protected méthode

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaintLayer() protected méthode

protected OnPaintLayer ( Fusion8.Cropper.PaintLayerEventArgs e ) : void
e Fusion8.Cropper.PaintLayerEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void