C# Class Sphere.Core.Windowstyle

A Sphere windowstyle object.
Inheritance: IDisposable
Mostra file Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes any resources used by this control.

DrawWindow ( Graphics g ) : void

Draws the window preview to the graphics object.

GeneratePreview ( int w, int h ) : void

Generates a preview, so as to cache the resultant image.

IsPointWithinSection ( Point p, int s ) : bool

Returns true if a point is in a retcangular section, one of the 8.

Open ( BinaryReader binread ) : void

Reads the windowstyle from a filestream.

Save ( string filename ) : void

Saves the windowstyle to the Sphere .rws format.

Windowstyle ( ) : System

Instantitates a blank window for your use.

Windowstyle ( BinaryReader binread ) : System

Instantiates a new WindowStyle object.

Windowstyle ( string filename ) : System

Creates a new windowstyle by loading a filename.

Private Methods

Method Description
Dispose ( bool disposing ) : void
FillHeight ( Graphics g, Bitmap img, Rectangle rect ) : void
FillWidth ( Graphics g, Bitmap img, Rectangle rect ) : void
FillWithin ( Graphics g, Bitmap img, Rectangle rect ) : void

Method Details

Dispose() public method

Disposes any resources used by this control.
public Dispose ( ) : void
return void

DrawWindow() public method

Draws the window preview to the graphics object.
public DrawWindow ( Graphics g ) : void
g System.Drawing.Graphics Standard Graphics Object.
return void

GeneratePreview() public method

Generates a preview, so as to cache the resultant image.
public GeneratePreview ( int w, int h ) : void
w int width of zone to fill
h int height of zone to fill
return void

IsPointWithinSection() public method

Returns true if a point is in a retcangular section, one of the 8.
public IsPointWithinSection ( Point p, int s ) : bool
p Point The point to compare by.
s int The section index.
return bool

Open() public method

Reads the windowstyle from a filestream.
public Open ( BinaryReader binread ) : void
binread System.IO.BinaryReader The System.IO.BinaryReader to use.
return void

Save() public method

Saves the windowstyle to the Sphere .rws format.
public Save ( string filename ) : void
filename string The path in which to save to.
return void

Windowstyle() public method

Instantitates a blank window for your use.
public Windowstyle ( ) : System
return System

Windowstyle() public method

Instantiates a new WindowStyle object.
public Windowstyle ( BinaryReader binread ) : System
binread System.IO.BinaryReader The stream where the data lies
return System

Windowstyle() public method

Creates a new windowstyle by loading a filename.
public Windowstyle ( string filename ) : System
filename string The file where the windowstyle is saved.
return System