VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

LINE super

pietro ing. cecchi  (8 Submissions)   Graphics   Visual Basic 5.0   Advanced   Wed 3rd February 2021

SUPERLINE - Awesome! Draws even thick lines in dashes and dots!
SEE SCREENSHOT
Keywords: graphics, graph, shape, rectangle, ellipse, polyline, polygon, border, borderwidth,
solid, dash, dot, dashdot, dashdotdot, drawwidth, drawstyle, drawmode, gdi

Assumes
See Line method for Form or Picture. SUPERLINE is just the same, BUT thick lines can be drawn with dashes and dots (Line method can't).

Side Effects
no side effect possible, safest code

API Declarations
Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As POINTAPI) As Long
Private Declare Function LineTo Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Private Declare Function CreatePen Lib "gdi32" (ByVal nPenStyle As Long, ByVal nWidth As Long, ByVal crColor As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long

Rate LINE super (3(3 Vote))
LINE super.bas

LINE super Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters