Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 |
Результат |
protected static CreateGrayscaleBitmapFromMap ( ITerrainChannel map ) : |
||
map | ITerrainChannel | The terrain channel to export to bitmap |
Результат |
protected LoadBitmap ( |
||
bitmap | ||
scene | IScene | |
Результат | ITerrainChannel |
public LoadFile ( string filename, IScene scene ) : ITerrainChannel | ||
filename | string | The target image to load |
scene | IScene | |
Результат | 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 | |
Результат | ITerrainChannel |
public LoadStream ( Stream stream, IScene scene ) : ITerrainChannel | ||
stream | Stream | |
scene | IScene | |
Результат | ITerrainChannel |
public SaveFile ( string filename, ITerrainChannel map ) : void | ||
filename | string | The target filename |
map | ITerrainChannel | The terrain channel being saved |
Результат | void |
public SaveStream ( Stream stream, ITerrainChannel map ) : void | ||
stream | Stream | The target stream |
map | ITerrainChannel | The terrain channel being saved |
Результат | void |