C# Класс Fusion8.Cropper.MainCropForm

Represents a form for marking off the cropped area of the desktop.
Наследование: CropForm
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
MainCropForm ( ) : System

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

MainCropForm() публичный Метод

public MainCropForm ( ) : System
Результат System

OnClosed() защищенный Метод

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Результат void

OnClosing() защищенный Метод

Raises the Form.Closing event.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs A that contains the event data.
Результат void

OnDoubleClick() защищенный Метод

Raises the E:System.Windows.Forms.Control.DoubleClick event.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

OnHotKeyPress() защищенный Метод

protected OnHotKeyPress ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnKeyDown() защищенный Метод

Raises the Form.KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
Результат void

OnLoad() защищенный Метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseDown() защищенный Метод

Raises the E:System.Windows.Forms.Control.MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseMove() защищенный Метод

Raises the E:System.Windows.Forms.Control.MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
Результат void

OnMouseUp() защищенный Метод

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseWheel() защищенный Метод

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnPaintLayer() защищенный Метод

protected OnPaintLayer ( Fusion8.Cropper.PaintLayerEventArgs e ) : void
e Fusion8.Cropper.PaintLayerEventArgs
Результат void

OnResize() защищенный Метод

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void