DrawAALine

Top  Previous  Next

Syntax

DrawAALine( x as INT,y as INT,x2 as INT,y2 as INT,col as UINT,opt buffer as POINTER )

Description

Draws an anti-aliased line on the screen. Anti-aliasing is a technique used to smooth the jagged edges that normally appear in lines drawn at an angle.

Parameters

x, y - Starting coordinates of line

x2, y2 -Ending coordinates of line

col - The lines color

buffer - Optional. Can be one of BACKBUFFER (default), FRONTBUFFER or SPRITEBUFFER

Return value

None

Remarks

Anti-aliasing is done through software. Because of this drawing an AA line will be significantly slower than drawing a non anti-aliased line. Horizontal and vertical lines are drawn normally.

See Also: DrawLine, DrawAlphaLine

Example usage

DrawAALine 0,0, 100, 100, RGB(255,255,255)