C# 클래스 Sphere.Core.Windowstyle

A Sphere windowstyle object.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

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

메소드 상세

Dispose() 공개 메소드

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

DrawWindow() 공개 메소드

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

GeneratePreview() 공개 메소드

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

IsPointWithinSection() 공개 메소드

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.
리턴 bool

Open() 공개 메소드

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

Save() 공개 메소드

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

Windowstyle() 공개 메소드

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

Windowstyle() 공개 메소드

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

Windowstyle() 공개 메소드

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