JCL Help:TJclBitmap32.DrawLine
JCL Help: TJclBitmap32.DrawLine Method
Search in JCL Help
Search in all projects
Summary
Draws a line.
Pascal
public procedure DrawLine(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineS(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineT(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineTS(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineA(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineAS(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; Value: TColor32; L: Boolean = False);
public procedure DrawLineF(X1: Single; Y1: Single; X2: Single; Y2: Single; Value: TColor32; L: Boolean = False);
public procedure DrawLineFS(X1: Single; Y1: Single; X2: Single; Y2: Single; Value: TColor32; L: Boolean = False);
public procedure DrawLineFP(X1: Single; Y1: Single; X2: Single; Y2: Single; L: Boolean = False);
public procedure DrawLineFSP(X1: Single; Y1: Single; X2: Single; Y2: Single; L: Boolean = False);
Description
Draws a line from (X1,Y1) to (X2,Y2). Methods with 'S' postfix perform necessary clipping to a bitmap boundary. LineA and LineAS use modified Bresenham’s algorithm (also known as Wu’s antialiasing), modified to support line transparency and pixel shape/gamma correction. LineX/F/XS/FS functions use my own algorithm for antialiasing. Line ends have fixed- or floating-point coordinates. These methods work approximately 2–2.5 times slower than LineA and LineAS. The last optional parameter (L) determines if the last point (X2,Y2) has to be drawn. It is useful in some cases to leave that point empty, especially when drawing sequences of transparent and/or antialiased lines. By default, DrawLine methods don’t render the last point. LineXP/FP/XSP/FXP draw antialiased lines with support for color patterns.
See Also
TJclBitmap32.LineTo TJclBitmap32.MoveTo Graphics_Naming_Conventions TColor32 TJclBitmap32.DrawHorzLine TJclBitmap32.DrawVertLine
About
Donator
Alex Denissov
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page