Method | Description | |
---|---|---|
LoadFile ( string filename, IScene scene ) : ITerrainChannel |
Loads a file from a specified filename on the disk, parses the image using the System.Drawing parsers then returns a terrain channel. Values are returned based on HSL brightness between 0m and 128m
|
|
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 |
Exports a file to a image on the disk using a System.Drawing exporter.
|
|
SaveStream ( Stream stream, ITerrainChannel map ) : void |
Exports a stream using a System.Drawing exporter.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
CreateBitmapFromMap ( ITerrainChannel map ) : |
Protected method, generates a colored bitmap image from a specified terrain channel.
|
|
CreateGrayscaleBitmapFromMap ( ITerrainChannel map ) : |
Protected method, generates a grayscale bitmap image from a specified terrain channel.
|
|
LoadBitmap ( |
protected static CreateBitmapFromMap ( ITerrainChannel map ) : |
||
map | ITerrainChannel | The terrain channel to export to bitmap |
return |
protected static CreateGrayscaleBitmapFromMap ( ITerrainChannel map ) : |
||
map | ITerrainChannel | The terrain channel to export to bitmap |
return |
protected LoadBitmap ( |
||
bitmap | ||
scene | IScene | |
return | ITerrainChannel |
public LoadFile ( string filename, IScene scene ) : ITerrainChannel | ||
filename | string | The target image to load |
scene | IScene | |
return | ITerrainChannel |
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 |
public LoadStream ( Stream stream, IScene scene ) : ITerrainChannel | ||
stream | Stream | |
scene | IScene | |
return | ITerrainChannel |
public SaveFile ( string filename, ITerrainChannel map ) : void | ||
filename | string | The target filename |
map | ITerrainChannel | The terrain channel being saved |
return | void |
public SaveStream ( Stream stream, ITerrainChannel map ) : void | ||
stream | Stream | The target stream |
map | ITerrainChannel | The terrain channel being saved |
return | void |