C# Class Spryt.ImageInfo

ファイルを表示 Open project: Metapyziks/SprytEditor Class Usage Examples

Public Methods

Method Description
AddLayer ( int index = -1, string label = null ) : void
ImageInfo ( ToolPanel toolInfoPanel, String filePath ) : System
ImageInfo ( ToolPanel toolInfoPanel, int width, int height, String name = "untitled.png" ) : System
InBounds ( int x, int y ) : bool
PushState ( ) : void
RemoveLayer ( int index ) : void
Save ( String filePath = null ) : void
SwapLayers ( int indexA, int indexB ) : void
UpdateLayers ( ) : void

Private Methods

Method Description
Load ( Stream stream ) : void
Load ( String filePath ) : void
Save ( Stream stream ) : void
SetupCanvas ( ToolPanel toolInfoPanel ) : void
SetupDefaultGrid ( ) : void
Wrap ( int a, int b ) : int

Method Details

AddLayer() public method

public AddLayer ( int index = -1, string label = null ) : void
index int
label string
return void

ImageInfo() public method

public ImageInfo ( ToolPanel toolInfoPanel, String filePath ) : System
toolInfoPanel ToolPanel
filePath String
return System

ImageInfo() public method

public ImageInfo ( ToolPanel toolInfoPanel, int width, int height, String name = "untitled.png" ) : System
toolInfoPanel ToolPanel
width int
height int
name String
return System

InBounds() public method

public InBounds ( int x, int y ) : bool
x int
y int
return bool

PushState() public method

public PushState ( ) : void
return void

RemoveLayer() public method

public RemoveLayer ( int index ) : void
index int
return void

Save() public method

public Save ( String filePath = null ) : void
filePath String
return void

SwapLayers() public method

public SwapLayers ( int indexA, int indexB ) : void
indexA int
indexB int
return void

UpdateLayers() public method

public UpdateLayers ( ) : void
return void