Delphi tips

 
  home
     

Projects

Products

Coding Corner
  Components
  Tips

Contact Us

Design Background

Curriculum Vitae

Forum

Links

 

 

Tips

Categories: Geometry, Graphics.

Geometry

Tip #1: Minimum distance between a point and a line
The code in this tip shows possibly the fastest way to find the minimum distance between a point and a line. This code is useful if you want to detect when a mouseclick is near a line, like when selecting line elements in vector graphics or mapping applications.
Source included (D1-D7)

Graphics

Tip #2: How to draw anti-aliased circles and disks
This tip shows how to draw circles and disks without using the Windows GDI subsystem, but rather direct pixel access. Learn how to draw them with floating point precision and configurable anti-aliasing.
Source, demo project and executable included (D5-D7)

Tip #3: Drawing Bezier curves with just enough segments
This tip shows how to divide a Bezier curve in individual line segments of known minimum length to optimize the number of segments used. Use the code to draw your own Bezier curves in GIS applications.
Source, demo project and executable included (D5-D7)

   Page last changed: 13Nov2009 © Copyright 2002-2009 SimDesign