C# 클래스 Sphere.Core.Tileset

A sphree Tileset object.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
CreateNew ( short tileWidth, short tileHeight ) : void

Adds a blank tile to the list of tiles.

Dispose ( ) : void

Disposes and clears this Tileset.

FromBinary ( BinaryReader reader ) : Tileset

Loads a tileset from a filestream.

FromFile ( string filename ) : Tileset

Loads a tileset independantly from a file.

FromSpriteset ( Spriteset set ) : Tileset

Takes the images of a spriteset and creates a ileset representation of it.

ResizeTiles ( short tw, short th, bool rescale ) : void

Resizes the tiles in the tileset.

Save ( string filename ) : void

Savbes the tileset to a separate file.

SaveImage ( string filename, int across = 6 ) : void

Saves the tileset as an image.

Tileset ( ) : System

Creates a fresh, empty tileset.

UpdateFromImage ( string filename ) : void

Updates graphics From a tileset image file.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

CreateNew() 공개 메소드

Adds a blank tile to the list of tiles.
public CreateNew ( short tileWidth, short tileHeight ) : void
tileWidth short The tile width in pixels.
tileHeight short The tile height in pixels.
리턴 void

Dispose() 공개 메소드

Disposes and clears this Tileset.
public Dispose ( ) : void
리턴 void

FromBinary() 공개 정적인 메소드

Loads a tileset from a filestream.
public static FromBinary ( BinaryReader reader ) : Tileset
reader System.IO.BinaryReader The System.IO.BinrayReader to use.
리턴 Tileset

FromFile() 공개 정적인 메소드

Loads a tileset independantly from a file.
public static FromFile ( string filename ) : Tileset
filename string The filename to load from.
리턴 Tileset

FromSpriteset() 공개 정적인 메소드

Takes the images of a spriteset and creates a ileset representation of it.
public static FromSpriteset ( Spriteset set ) : Tileset
set Spriteset The spriteset to use.
리턴 Tileset

ResizeTiles() 공개 메소드

Resizes the tiles in the tileset.
public ResizeTiles ( short tw, short th, bool rescale ) : void
tw short New tile width.
th short New tile height.
rescale bool If true rescale, else resize.
리턴 void

Save() 공개 메소드

Savbes the tileset to a separate file.
public Save ( string filename ) : void
filename string The filename to save to.
리턴 void

SaveImage() 공개 메소드

Saves the tileset as an image.
public SaveImage ( string filename, int across = 6 ) : void
filename string The filename to save to.
across int The amount of tiles to put across (width-wise).
리턴 void

Tileset() 공개 메소드

Creates a fresh, empty tileset.
public Tileset ( ) : System
리턴 System

UpdateFromImage() 공개 메소드

Updates graphics From a tileset image file.
public UpdateFromImage ( string filename ) : void
filename string
리턴 void