C# Class Universe.Modules.Terrain.FileLoaders.JPEG

Inheritance: ITerrainLoader
Exibir arquivo Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
LoadFile ( string filename, IScene scene ) : ITerrainChannel
LoadFile ( string filename, IScene scene, int x, int y, int fileWidth, int fileHeight, int w, int h ) : ITerrainChannel
LoadStream ( Stream stream, IScene scene ) : ITerrainChannel
SaveFile ( string filename, ITerrainChannel map ) : void
SaveStream ( Stream stream, ITerrainChannel map ) : void

Exports a stream using a System.Drawing exporter.

ToString ( ) : string

Protected Methods

Method Description
LoadBitmap ( Bitmap bitmap, IScene scene ) : ITerrainChannel

Private Methods

Method Description
CreateBitmapFromMap ( ITerrainChannel map ) : Bitmap

Method Details

LoadBitmap() protected method

protected LoadBitmap ( Bitmap bitmap, IScene scene ) : ITerrainChannel
bitmap System.Drawing.Bitmap
scene IScene
return ITerrainChannel

LoadFile() public method

public LoadFile ( string filename, IScene scene ) : ITerrainChannel
filename string
scene IScene
return ITerrainChannel

LoadFile() public method

public LoadFile ( string filename, IScene scene, int x, int y, int fileWidth, int fileHeight, int w, int h ) : ITerrainChannel
filename string
scene IScene
x int
y int
fileWidth int
fileHeight int
w int
h int
return ITerrainChannel

LoadStream() public method

public LoadStream ( Stream stream, IScene scene ) : ITerrainChannel
stream Stream
scene IScene
return ITerrainChannel

SaveFile() public method

public SaveFile ( string filename, ITerrainChannel map ) : void
filename string
map ITerrainChannel
return void

SaveStream() public method

Exports a stream using a System.Drawing exporter.
public SaveStream ( Stream stream, ITerrainChannel map ) : void
stream Stream The target stream
map ITerrainChannel The terrain channel being saved
return void

ToString() public method

public ToString ( ) : string
return string