C# Класс SphereStudio.Plugins.Components.TilesetControl2

Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

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

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

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

Compiles the Selected list into a single image.
public GetCompiledImage ( ) : Bitmap
Результат Bitmap

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

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.
Результат void

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

public Select ( short tile ) : void
tile short
Результат void

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

Sets the images of the selected tiles.
public SetImages ( Bitmap images ) : void
images Bitmap A list of images to use for the tiles.
Результат void

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

Sets the images of the selected tiles;
public SetImages ( List images ) : void
images List
Результат void

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

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

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

public UpdateHeight ( ) : void
Результат void

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

Call this when the tile sizes change outside of this controls scope.
public UpdateTileSize ( ) : void
Результат void

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

If it returns true, stop zooming.
public ZoomIn ( ) : bool
Результат bool

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

If it returns true, stop zooming.
public ZoomOut ( ) : bool
Результат bool