C# Class SphereStudio.Plugins.Components.TilesetControl2

Show file Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
GetCompiledImage ( ) : Bitmap

Compiles the Selected list into a single image.

ResizeTileset ( short tileWidth, short tileHeight, bool rescale ) : void

Resizes or rescales the tileset belonging to this control.

Select ( short tile ) : void
SetImages ( Bitmap images ) : void

Sets the images of the selected tiles.

SetImages ( List images ) : void

Sets the images of the selected tiles;

TilesetControl2 ( ) : System
UpdateHeight ( ) : void
UpdateTileSize ( ) : void

Call this when the tile sizes change outside of this controls scope.

ZoomIn ( ) : bool

If it returns true, stop zooming.

ZoomOut ( ) : bool

If it returns true, stop zooming.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddTiles ( short start, short count ) : void
InitializeComponent ( ) : void

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

RemoveTiles ( int count ) : void
SelectTiles ( ) : void
TileContextStrip_Opening ( object sender, CancelEventArgs e ) : void
TilesetControl2_MouseDown ( object sender, MouseEventArgs e ) : void
TilesetControl2_MouseMove ( object sender, MouseEventArgs e ) : void
TilesetControl2_MouseUp ( object sender, MouseEventArgs e ) : void
TilesetControl2_Paint ( object sender, PaintEventArgs e ) : void
TilesetControl2_Resize ( object sender, EventArgs e ) : void
addItem_Click ( object sender, EventArgs e ) : void
appendTilesItem_Click ( object sender, EventArgs e ) : void
insertItem_Click ( object sender, EventArgs e ) : void
removeItem_Click ( object sender, EventArgs e ) : void
removeTilesItem_Click ( object sender, EventArgs e ) : void
zoomInItem_Click ( object sender, EventArgs e ) : void
zoomOutItem_Click ( object sender, EventArgs e ) : void

Method Details

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

GetCompiledImage() public method

Compiles the Selected list into a single image.
public GetCompiledImage ( ) : Bitmap
return Bitmap

ResizeTileset() public method

Resizes or rescales the tileset belonging to this control.
public ResizeTileset ( short tileWidth, short tileHeight, bool rescale ) : void
tileWidth short Width of the new tiles.
tileHeight short Height of the new tiles.
rescale bool Whether or not to rescale along with the resize.
return void

Select() public method

public Select ( short tile ) : void
tile short
return void

SetImages() public method

Sets the images of the selected tiles.
public SetImages ( Bitmap images ) : void
images Bitmap A list of images to use for the tiles.
return void

SetImages() public method

Sets the images of the selected tiles;
public SetImages ( List images ) : void
images List
return void

TilesetControl2() public method

public TilesetControl2 ( ) : System
return System

UpdateHeight() public method

public UpdateHeight ( ) : void
return void

UpdateTileSize() public method

Call this when the tile sizes change outside of this controls scope.
public UpdateTileSize ( ) : void
return void

ZoomIn() public method

If it returns true, stop zooming.
public ZoomIn ( ) : bool
return bool

ZoomOut() public method

If it returns true, stop zooming.
public ZoomOut ( ) : bool
return bool