Click or drag to resize

BaseGpsReceiverDrawCompass Method

Draws a compass.

Namespace: ZylSoft.Gps
Assembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.28.8737.22596
XMLNS for XAML: Not mapped to an xmlns.
public void DrawCompass(
	Graphics g,
	int radius,
	Color backColor,
	Color foreColor


g  Graphics
GDI+ drawing surface.
radius  Int32
Radius of the compass.
backColor  Color
Back color.
foreColor  Color
Fore color.
Put a PictureBox control on your form. In the Draw event of the PictureBox use the following code: gpsReceiver.DrawCompass(e.Graphics, Math.Min(pictureBox.Width, pictureBox.Height)/2, Color.Black, Color.White);
See Also