C# 클래스 Sphere.Core.Utility.Line

A convenient Line object.
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
DrawLine ( Graphics g, Pen pen ) : void

Draws this line to the System.Drawing.Graphics.

Line ( ) : System.Drawing

Creates a new, empty Line.

Line ( Line copy ) : System.Drawing

Creates a line from another line.

Line ( Point start, Point end ) : System.Drawing

Creates a line with some values.

Line ( short x1, short y1, short x2, short y2 ) : System.Drawing

Creates a line with some values.

ToRectangle ( ) : Rectangle

Grabs the area of this Line.

ToRectangle ( Line l ) : Rectangle

Grabs the area of a Line.

메소드 상세

DrawLine() 공개 메소드

Draws this line to the System.Drawing.Graphics.
public DrawLine ( Graphics g, Pen pen ) : void
g System.Drawing.Graphics The System.Drawing.graphics to use.
pen System.Drawing.Pen The pen style to use.
리턴 void

Line() 공개 메소드

Creates a new, empty Line.
public Line ( ) : System.Drawing
리턴 System.Drawing

Line() 공개 메소드

Creates a line from another line.
public Line ( Line copy ) : System.Drawing
copy Line The other line to copy from.
리턴 System.Drawing

Line() 공개 메소드

Creates a line with some values.
public Line ( Point start, Point end ) : System.Drawing
start System.Drawing.Point The start Point.
end System.Drawing.Point The end Point.
리턴 System.Drawing

Line() 공개 메소드

Creates a line with some values.
public Line ( short x1, short y1, short x2, short y2 ) : System.Drawing
x1 short The start x.
y1 short The start y.
x2 short The end x.
y2 short The end y.
리턴 System.Drawing

ToRectangle() 공개 메소드

Grabs the area of this Line.
public ToRectangle ( ) : Rectangle
리턴 System.Drawing.Rectangle

ToRectangle() 공개 정적인 메소드

Grabs the area of a Line.
public static ToRectangle ( Line l ) : Rectangle
l Line The line to convert
리턴 System.Drawing.Rectangle