C# Class Treefrog.Pipeline.ImagePacker.TexturePacker

ファイルを表示 Open project: jaquadro/Treefrog

Public Methods

Method Description
AddImage ( Bitmap image, string name ) : void
AddImage ( string file ) : void
Pack ( string outputDir, string packFileName ) : List
TexturePacker ( Settings settings ) : System
TexturePacker ( string rootDir, Settings settings ) : System

Private Methods

Method Description
GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo
PremultiplyAlpha ( Bitmap source ) : Bitmap
WriteImages ( string outputDir, List pages, string packFileName ) : void
WritePackFile ( string outputDir, List pages, string packFileName ) : void
WriteRect ( TextWriter writer, Page page, Rect rect, string name ) : void

Method Details

AddImage() public method

public AddImage ( Bitmap image, string name ) : void
image System.Drawing.Bitmap
name string
return void

AddImage() public method

public AddImage ( string file ) : void
file string
return void

Pack() public method

public Pack ( string outputDir, string packFileName ) : List
outputDir string
packFileName string
return List

TexturePacker() public method

public TexturePacker ( Settings settings ) : System
settings Settings
return System

TexturePacker() public method

public TexturePacker ( string rootDir, Settings settings ) : System
rootDir string
settings Settings
return System