Contains two classes
•TIsGraphics
•TNavGraphics
A general base class to set up a canvas.
Private
SizeCanvasFont
Protected
ClearCanvas
PointOutsideBounds
DrawHorizontalScaleBar;
DrawVerticalScaleBar;
RectangleToPath
AddText
Public
SetNewImageBitMap
Returns True if the bitmap in an image has been (re) created
Inherits from TIsGraphics and converts Latitude and Longitude references into plot point on the canvas. Does not handle International dateline
Private
NavAsPoint:
Returns a scaled plot point TPointf from Navigation References
AddScale:
Adds a scale bar to the Canvas- Determines size from the Degrees to Pixels scale passed in
Public
GetScale:
Takes a list of Lat/Long Records and a canvas and returns the degrees to pixel scale factors required to plot the points. It also returns the center of the points provided as Pixels (CenterOffset) and Lat/Long (Origin)
RelocateNavPointFromMapRef
Takes a RNavigateLongLat Record and calculates a new value based on the original map x,y pixel reference, the map scale and a desired position given in Map x,y pixel coordinates
DrawLocationsOnCanvas
Takes a list of Lat/Long Records and plots the values on a canvas. Accepts a Header Text and a scale bar V/H option. Can be made to attempt to smooth out jitter by setting the Jitter parameter