Nakreslí čárku na Baltíkovu plochu.

Jmenný prostor:  SGP.Baltie2D
Knihovna:  SGPRTL (v SGPRTL)
Verze: dll

Syntaxe

C#
public void DrawLine(
	Pen pen,
	int x1,
	int y1,
	int x2,
	int y2
)

Parametry

pen
Typ: System.Drawing..::.Pen
Pero Pen, kterým bude čára nakreslena.
x1
Typ: System..::.Int32
Souřadnice X počátku čáry.
y1
Typ: System..::.Int32
Souřadnice Y počátku čáry.
x2
Typ: System..::.Int32
Souřadnice X konce čáry.
y2
Typ: System..::.Int32
Souřadnice Y konce čáry.

Výjimky

VýjimkaPodmínka
System..::.ArgumentNullExceptionpen je nullNothingnullptrnulová reference (Nothing v Visual Basic).

Podívat se také na