C# Class SphereStudio.Plugins.ImageEditView

Inheritance: Sphere.Plugins.Views.ImageView
Mostra file Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
GetImages ( short tileWidth, short tileHeight ) : System.Drawing.Bitmap[]

Cuts up and returns a list of sub-images.

ImageEditView ( ) : System
Load ( string path ) : void
NewDocument ( ) : bool
Redo ( ) : void
Rescale ( int width, int height, InterpolationMode mode ) : void
Resize ( int width, int height ) : void
Save ( string path ) : void
SetImage ( Bitmap image ) : void
SetScale ( int width, int height, InterpolationMode mode ) : void

Sets the new scale of the image.

SetSize ( int width, int height ) : void

Sets the new size of the image.

Undo ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AlphaTracker_Scroll ( object sender, EventArgs e ) : void
AlphaTracker_ValueChanged ( object sender, EventArgs e ) : void
ColorUpdated ( object sender, EventArgs e ) : void
FillButton_Click ( object sender, EventArgs e ) : void
ImageEditor_ColorChanged ( object sender, EventArgs e ) : void
ImageEditor_ImageChanged ( object sender, EventArgs e ) : void
ImageEditor_Paint ( object sender, PaintEventArgs e ) : void
ImagePanel_Resize ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

InitializeDocking ( ) : void
LineButton_Click ( object sender, EventArgs e ) : void
MirrorButton_Click ( object sender, EventArgs e ) : void
MirrorHButton_Click ( object sender, EventArgs e ) : void
OutlineButton_Click ( object sender, EventArgs e ) : void
PanButton_Click ( object sender, EventArgs e ) : void
PencilButton_Click ( object sender, EventArgs e ) : void
RectangleButton_Click ( object sender, EventArgs e ) : void
RedoButton_Click ( object sender, EventArgs e ) : void
ShowGridButton_Click ( object sender, EventArgs e ) : void
UndoButton_Click ( object sender, EventArgs e ) : void
UnselectButtons ( ) : void
box_MouseClick ( object sender, MouseEventArgs e ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

Deactivate() public method

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

GetImages() public method

Cuts up and returns a list of sub-images.
public GetImages ( short tileWidth, short tileHeight ) : System.Drawing.Bitmap[]
tileWidth short Width of sub-image.
tileHeight short Height of sub-image.
return System.Drawing.Bitmap[]

ImageEditView() public method

public ImageEditView ( ) : System
return System

Load() public method

public Load ( string path ) : void
path string
return void

NewDocument() public method

public NewDocument ( ) : bool
return bool

Redo() public method

public Redo ( ) : void
return void

Rescale() public method

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

Resize() public method

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

Save() public method

public Save ( string path ) : void
path string
return void

SetImage() public method

public SetImage ( Bitmap image ) : void
image Bitmap
return void

SetScale() public method

Sets the new scale of the image.
public SetScale ( int width, int height, InterpolationMode mode ) : void
width int
height int
mode InterpolationMode
return void

SetSize() public method

Sets the new size of the image.
public SetSize ( int width, int height ) : void
width int
height int
return void

Undo() public method

public Undo ( ) : void
return void