Serial port and GPS

BmpMapForm Class

Form for showing the bitmap map and the current position on it.

For a list of all members of this type, see BmpMapForm Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     serial.BmpMapForm

[Visual Basic]
Public Class BmpMapForm
    Inherits Form
[C#]
public class BmpMapForm : Form

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The user can scroll the image by dragging the image with the mouse, while the left button is pressed. With the menu "Find" the map image can be automatically scrolled to the current position. With the menu items under "Zoom" the map image can be zoomed in or out.

Example

Example of a maps file example.maps:

            11d59m05.60sE 49d33m16.05sN 12d00m36.03sE 49d32m21.97sN sbach.bmp
            6d37m44.00sE 43d16m26.95sN 6d39m10.66sE 43d15m29.04sN sttropez.jpg
            
defines two map entries, one in the bitmap file sbach.bmp defining a rectangle region: and the second map in the file sttropez.jpg, presenting also a rectangle region with the boundaries: The following example program should load the bitmap file sttropez.jpg and show a point within its rectangle boundaries:
[C#]

            using serial;
            public void showLocation() {
            BmpMapForm f;
            double     x, y;
            x = Utils.coord2dec("6d37m00.00sE", false);
            y = Utils.coord2dec("43d16m00.00sN", true);
            f = new BmpMapForm("example.maps");
            f.setPoint(x, y);
            f.Show();
            }
            

Requirements

Namespace: serial

Assembly: map (in map.exe)

See Also

BmpMapForm Members | serial Namespace | BmpMaps | BmpMap