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.
Syntax
public void DrawCompassWithSkin(
	Graphics g,
	string imagePath,
	int radius
)

Parameters

g  Graphics
GDI+ drawing surface.
imagePath  String
Path of the compass skin (image).
radius  Int32
Radius of the compass.
Example
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