C# Class SphereStudio.Plugins.Components.ImageEditControl

显示文件 Open project: Radnen/spherestudio Class Usage Examples

Public Properties

Property Type Description
_last_zoom int

Public Methods

Method Description
ClearHistory ( ) : void
Copy ( ) : void
Destroy ( ) : void
GetImage ( ) : Bitmap

Gets a copy of the current drawing image.

ImageEditControl ( ) : Sphere.Core.Editor
MakeNew ( int width, int height ) : void
Paste ( ) : void
PasteInto ( ) : void
Redo ( ) : void
RescaleImage ( int width, int height, InterpolationMode mode ) : void
ResizeImage ( int width, int height ) : void
ResizeToFit ( ) : void
SetImage ( Bitmap image ) : void

Sets the drawing image as a copy of the image.

Slide ( int ox, int oy ) : void
Undo ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DoTool ( ) : void
DrawPenDot ( ) : void
DrawPenLine ( ) : void
DrawTool ( Graphics g ) : void
Flatten ( Rectangle &rect ) : void
GrowPenRegion ( Point mouse ) : void

Figures out the subsection to add to the undo handler.

ImageEditControl2_MouseDown ( object sender, MouseEventArgs e ) : void
ImageEditControl2_MouseMove ( object sender, MouseEventArgs e ) : void
ImageEditControl2_MouseUp ( object sender, MouseEventArgs e ) : void
ImageEditControl2_Paint ( object sender, PaintEventArgs e ) : void
InitializeComponent ( ) : void

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

PushHistory ( ) : void
PushResizePage ( Image image ) : void
RotateFlip ( RotateFlipType type ) : void
UpdateGrid ( ) : void
blendItem_Click ( object sender, EventArgs e ) : void
contextMenuStrip_Opening ( object sender, CancelEventArgs e ) : void
copyImageItem_Click ( object sender, EventArgs e ) : void
horizontalItem_Click ( object sender, EventArgs e ) : void
pasteIntoItem_Click ( object sender, EventArgs e ) : void
pasteNewItem_Click ( object sender, EventArgs e ) : void
replaceColorItem_Click ( object sender, EventArgs e ) : void
replaceItem_Click ( object sender, EventArgs e ) : void
rotateLeftItem_Click ( object sender, EventArgs e ) : void
rotateRightItem_Click ( object sender, EventArgs e ) : void
selectColorItem_Click ( object sender, EventArgs e ) : void
verticalItem_Click ( object sender, EventArgs e ) : void

Method Details

ClearHistory() public method

public ClearHistory ( ) : void
return void

Copy() public method

public Copy ( ) : void
return void

Destroy() public method

public Destroy ( ) : 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

GetImage() public method

Gets a copy of the current drawing image.
public GetImage ( ) : Bitmap
return Bitmap

ImageEditControl() public method

public ImageEditControl ( ) : Sphere.Core.Editor
return Sphere.Core.Editor

MakeNew() public method

public MakeNew ( int width, int height ) : void
width int
height int
return void

Paste() public method

public Paste ( ) : void
return void

PasteInto() public method

public PasteInto ( ) : void
return void

Redo() public method

public Redo ( ) : void
return void

RescaleImage() public method

public RescaleImage ( int width, int height, InterpolationMode mode ) : void
width int
height int
mode InterpolationMode
return void

ResizeImage() public method

public ResizeImage ( int width, int height ) : void
width int
height int
return void

ResizeToFit() public method

public ResizeToFit ( ) : void
return void

SetImage() public method

Sets the drawing image as a copy of the image.
public SetImage ( Bitmap image ) : void
image Bitmap
return void

Slide() public method

public Slide ( int ox, int oy ) : void
ox int
oy int
return void

Undo() public method

public Undo ( ) : void
return void

Property Details

_last_zoom public_oe property

public int _last_zoom
return int