C# 클래스 Universe.Modules.Terrain.FileLoaders.GenericSystemDrawing

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 unsubstantiated directly.
상속: ITerrainLoader
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
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 ) : Bitmap

Protected method, generates a colored bitmap image from a specified terrain channel.

CreateGrayscaleBitmapFromMap ( ITerrainChannel map ) : Bitmap

Protected method, generates a grayscale bitmap image from a specified terrain channel.

LoadBitmap ( Bitmap bitmap, IScene scene ) : ITerrainChannel

메소드 상세

CreateBitmapFromMap() 보호된 정적인 메소드

Protected method, generates a colored bitmap image from a specified terrain channel.
protected static CreateBitmapFromMap ( ITerrainChannel map ) : Bitmap
map ITerrainChannel The terrain channel to export to bitmap
리턴 System.Drawing.Bitmap

CreateGrayscaleBitmapFromMap() 보호된 정적인 메소드

Protected method, generates a grayscale bitmap image from a specified terrain channel.
protected static CreateGrayscaleBitmapFromMap ( ITerrainChannel map ) : Bitmap
map ITerrainChannel The terrain channel to export to bitmap
리턴 System.Drawing.Bitmap

LoadBitmap() 보호된 메소드

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

LoadFile() 공개 메소드

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
public LoadFile ( string filename, IScene scene ) : ITerrainChannel
filename string The target image to load
scene IScene
리턴 ITerrainChannel

LoadFile() 공개 메소드

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

LoadStream() 공개 메소드

public LoadStream ( Stream stream, IScene scene ) : ITerrainChannel
stream Stream
scene IScene
리턴 ITerrainChannel

SaveFile() 공개 메소드

Exports a file to a image on the disk using a System.Drawing exporter.
public SaveFile ( string filename, ITerrainChannel map ) : void
filename string The target filename
map ITerrainChannel The terrain channel being saved
리턴 void

SaveStream() 공개 메소드

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
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string