LineTo

E724265

LineTo is a Windows GDI function that draws a straight line from the current drawing position to a specified endpoint in a device context.

All labels observed (1)

Label Occurrences
LineTo canonical 1

How this entity was disambiguated

Statements (46)

Predicate Object
instanceOf Windows GDI function
graphics drawing function
affectsObject device context
belongsToAPI Win32 API
callConvention stdcall
category 2D graphics API
clippedBy current clipping region
coordinateMappingControlledBy SetMapMode
declaredAs BOOL LineTo(HDC hdc, int x, int y);
definedIn wingdi.h
documentationSite Microsoft Learn
drawsShape straight line
endsAt specified endpoint
errorRetrieval GetLastError
exportedBy gdi32.dll
graphicsType immediate mode rendering
hasParameter HDC hdc
int x
int y
hasReturnType BOOL
languageBinding C
linkLibrary Gdi32.lib
movesCurrentPosition TRUE
partOf Windows GDI
relatedFunction LineDDA
MoveToEx
Polyline
PolylineTo
requires valid device context handle
requiresHeader Windows.h
requiresSubsystem GDI
linked to: Gdi32
returnsOnFailure zero
returnsOnSuccess nonzero
runsOn Microsoft Windows
linked to: Windows
startsFrom current drawing position
supportedSince early versions of Windows
threadingModel caller must serialize access to HDC
updatesCurrentPositionTo specified endpoint
usedFor drawing UI element borders
drawing chart axes
rendering vector graphics
usesCoordinateSystem device coordinates
logical coordinates
usesCurrentObject current brush for cosmetic effects only
current pen
current raster operation mode

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Gdi32 exportsFunction LineTo