HorzLine

Graphics32

TBitmap32.HorzLine

procedure HorzLine(X1, Y, X2: Integer; Value: TColor32);

procedure HorzLineS(X1, Y, X2: Integer; Value: TColor32);

procedure HorzLineT(X1, Y, X2: Integer; Value: TColor32);

procedure HorzLineTS(X1, Y, X2: Integer; Value: TColor32);

procedure HorzLineTSP(X1, Y, X2: Integer);

Description

Draws a horizontal line from (X1,Y) to (X2, Y). The last point is always included.

These functions works faster compared to Line (I think HorzLine is the fastest line drawing function in the world :) . In versions with 'S' postfix necessary clipping to a bitmap coordinate range is provided. In versions without 'S' postfix, the X1 value should be less than or equal to X2.

HorzLineTSP uses a stipple pattern to vary the color along the line.

See Also

Line, Line Patterns, Naming Conventions, TColor32, VertLine