C# Class Spryt.Canvas

Inheritance: System.Windows.Forms.Panel, IDisposable
Datei anzeigen Open project: Metapyziks/SprytEditor Class Usage Examples

Public Methods

Method Description
Canvas ( ImageInfo image, ToolPanel toolInfoPanel ) : System
Dispose ( ) : void
SendImageChange ( ) : void
UpdateGrid ( ) : void
UpdateTiledView ( ) : void
UpdateZoomScale ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnKeyDown ( KeyEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnParentChanged ( EventArgs e ) : void
OnResize ( EventArgs eventargs ) : void

Private Methods

Method Description
AllSelect ( bool deselect = false ) : void
AreaSelect ( int x, int y, bool deselect = false ) : void
CanDraw ( int x, int y, bool ignoreSelected = false ) : bool
Centre ( ) : void
DrawBox ( int x, int y, System.Pixel pixel ) : void
DrawPencil ( int x, int y, System.Pixel pixel ) : void
Fill ( int x, int y, System.Pixel pixel ) : void
InitializeComponent ( ) : void

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

OnParentDisposed ( object sender, EventArgs e ) : void
OnParentMouseEnter ( object sender, EventArgs e ) : void
OnParentResize ( object sender, EventArgs e ) : void
PixelSelect ( int x, int y, bool deselect = false ) : void
UpdateBoxPreview ( int x, int y ) : void
UpdateClientSize ( ) : void
UpdateMovedRect ( int x, int y ) : void
UpdateScaledRegion ( ) : void
WandSelect ( int x, int y, bool deselect = false ) : void
Wrap ( int a, int b ) : int

Method Details

Canvas() public method

public Canvas ( ImageInfo image, ToolPanel toolInfoPanel ) : System
image ImageInfo
toolInfoPanel ToolPanel
return System

Dispose() public method

public Dispose ( ) : void
return void

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

OnKeyDown() protected method

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

OnMouseDown() protected method

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

OnMouseEnter() protected method

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

OnMouseMove() protected method

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

OnMouseUp() protected method

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

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnParentChanged() protected method

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

OnResize() protected method

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

SendImageChange() public method

public SendImageChange ( ) : void
return void

UpdateGrid() public method

public UpdateGrid ( ) : void
return void

UpdateTiledView() public method

public UpdateTiledView ( ) : void
return void

UpdateZoomScale() public method

public UpdateZoomScale ( ) : void
return void