Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Delphi-DistanceOnImage

Load a JPG image, resize to display compute distance between two clicks

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi-DistanceOnImage

Simple demo showing how to load a JPG in a TImage and resizing the view so that the entire image fits is TImage.

Show how to compute the distance between two mouse click, expressed in the coordinate space of the image.

The code is kept as simple as possible. There should be more tests to prevent bad behavior with invalid parameters.