OpenSim
|
A virtual class designed to have methods overloaded, this class provides an interface for a generic image saving and loading mechanism, but does not specify the format. It should not be insubstantiated directly. More...
Public Member Functions | |
virtual ITerrainChannel | LoadFile (string filename) |
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 More... | |
virtual ITerrainChannel | LoadFile (string filename, int offsetX, int offsetY, int fileWidth, int fileHeight, int w, int h) |
virtual ITerrainChannel | LoadStream (Stream stream) |
virtual void | SaveFile (string filename, ITerrainChannel map) |
Exports a file to a image on the disk using a System.Drawing exporter. More... | |
virtual void | SaveStream (Stream stream, ITerrainChannel map) |
Exports a stream using a System.Drawing exporter. More... | |
virtual void | SaveFile (ITerrainChannel m_channel, string filename, int offsetX, int offsetY, int fileWidth, int fileHeight, int regionSizeX, int regionSizeY) |
Save a number of map tiles to a single big image file. More... | |
override string | ToString () |
virtual bool | SupportsTileSave () |
Protected Member Functions | |
virtual ITerrainChannel | LoadBitmap (Bitmap bitmap) |
virtual void | Save (Bitmap bmp, string filename) |
Static Protected Member Functions | |
static Bitmap | CreateGrayscaleBitmapFromMap (ITerrainChannel map) |
Protected method, generates a grayscale bitmap image from a specified terrain channel. More... | |
Properties | |
string | FileExtension [get] |
Properties inherited from OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader | |
string | FileExtension [get] |
A virtual class designed to have methods overloaded, this class provides an interface for a generic image saving and loading mechanism, but does not specify the format. It should not be insubstantiated directly.
Definition at line 43 of file GenericSystemDrawing.cs.
|
inlinestaticprotected |
Protected method, generates a grayscale bitmap image from a specified terrain channel.
map | The terrain channel to export to bitmap |
Definition at line 214 of file GenericSystemDrawing.cs.
|
inlineprotectedvirtual |
Definition at line 90 of file GenericSystemDrawing.cs.
|
inlinevirtual |
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
filename | The target image to load |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 60 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 66 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 84 of file GenericSystemDrawing.cs.
|
inlineprotectedvirtual |
Definition at line 190 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Exports a file to a image on the disk using a System.Drawing exporter.
filename | The target filename |
map | The terrain channel being saved |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 112 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Save a number of map tiles to a single big image file.
If the image file already exists then the tiles saved will replace those already in the file - other tiles will be untouched.
filename | The terrain file to save |
offsetX | The map x co-ordinate at which to begin the save. |
offsetY | The may y co-ordinate at which to begin the save. |
fileWidth | The number of tiles to save along the X axis. |
fileHeight | The number of tiles to save along the Y axis. |
regionSizeX | The width of a map tile. |
regionSizeY | The height of a map tile. |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 131 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Exports a stream using a System.Drawing exporter.
stream | The target stream |
map | The terrain channel being saved |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 124 of file GenericSystemDrawing.cs.
|
inlinevirtual |
Implements OpenSim.Region.CoreModules.World.Terrain.ITerrainLoader.
Definition at line 203 of file GenericSystemDrawing.cs.
|
inline |
Definition at line 197 of file GenericSystemDrawing.cs.
|
get |
Definition at line 48 of file GenericSystemDrawing.cs.