Click or drag to resize

BaseGpsReceiverDrawCompassWithSkin(Graphics, String, Int32) Method

Draws a compass, using a custom skin.

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


g  Graphics
GDI+ drawing surface.
imagePath  String
Path of the compass skin (image).
radius  Int32
Radius of the compass.
Put a PictureBox control on your form. In the Draw event of the PictureBox use the following code: gpsReceiver.DrawCompassWithSkin(e.Graphics, "c:\compass.png", Math.Min(pictureBox.Width, pictureBox.Height)/2);
See Also