C# Class DCPU16_ASM.Tools.CFontCharSet

Our Font set Object for internal usage/saving
ファイルを表示 Open project: densitynz/DCPU-16-ASM.NET

Public Methods

Method Description
CFontCharSet ( ) : System

Constructor

Clear ( ) : void

Completely wipes the font clear

DumpToAssembly ( string _filename ) : bool

Dump font/character map to assembly file.

ImportFromDCPU ( cpuDoubleBuffer &_dcpu ) : void

Import font from a CURRENTLY RUNNING dcpu! I figure this'll be really handy for some people.

ImportFromImage ( string _fileName, string &_error ) : bool

Import from Image file

Load ( string _filename ) : bool

Load our Font character set from disk

Save ( ) : bool

Save our character set to disk

Save ( string _filename ) : bool

Save our character set to disk

Private Methods

Method Description
ReadHeader ( MemoryStream &_mem ) : void

Reads our special character map header, if anyting doesn't match we'll throw an IO Exception

WriteHeader ( MemoryStream &_mem ) : void

Write character map header file

Method Details

CFontCharSet() public method

Constructor
public CFontCharSet ( ) : System
return System

Clear() public method

Completely wipes the font clear
public Clear ( ) : void
return void

DumpToAssembly() public method

Dump font/character map to assembly file.
public DumpToAssembly ( string _filename ) : bool
_filename string
return bool

ImportFromDCPU() public method

Import font from a CURRENTLY RUNNING dcpu! I figure this'll be really handy for some people.
public ImportFromDCPU ( cpuDoubleBuffer &_dcpu ) : void
_dcpu DCPU16_ASM.Emulator.cpuDoubleBuffer dpu-16 reference
return void

ImportFromImage() public method

Import from Image file
public ImportFromImage ( string _fileName, string &_error ) : bool
_fileName string
_error string
return bool

Load() public method

Load our Font character set from disk
public Load ( string _filename ) : bool
_filename string
return bool

Save() public method

Save our character set to disk
public Save ( ) : bool
return bool

Save() public method

Save our character set to disk
public Save ( string _filename ) : bool
_filename string
return bool