Click or drag to resize

BaseGpsReceiverDrawCompassWithSkin(Graphics, Image, 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,
	Image skinImage,
	int radius
)

Parameters

g  Graphics
GDI+ drawing surface.
skinImage  Image
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, bitmap1, Math.Min(pictureBox.Width, pictureBox.Height)/2);
See Also