Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.35 KB

File metadata and controls

69 lines (48 loc) · 1.35 KB

Home

Function name : GdipDrawLineI

Group: GDI+ Graphics - Library: gdiplus


Uses a pen to draw a line.


Code examples:

GDI+ fun: roach-infested desktop

Declaration:

GpStatus WINGDIPAPI GdipDrawLineI(
	GpGraphics *graphics,
	GpPen *pen,
	INT x1, INT y1,
	INT x2, INT y2)  

FoxPro declaration:

DECLARE INTEGER GdipDrawLineI IN gdiplus;
	INTEGER graphics,;
	INTEGER gdipen,;
	INTEGER x1,;
	INTEGER y1,;
	INTEGER x2,;
	INTEGER y2  

Parameters:

graphics [in] Pointer to a Graphics object.

pen [in] Pointer to a Pen that is used to draw the line.

x1 [in] Integer that specifies the x-coordinate of the starting point of the line.

y1 [in] Integer that specifies the y-coordinate of the starting point of the line.

x2 [in] Integer that specifies the x-coordinate of the ending point of the line.

y2 [in] Integer that specifies the y-coordinate of the ending point of the line


Return value:

If the method succeeds, it returns Ok (0), which is an element of the Status enumeration.


Comments:

Create Pen object with GdipCreatePen1, GdipCreatePen2 or GdipClonePen function.