Click or drag to resize

BaseGpsReceiverWpfExtensionsDrawSatellitesToWpfCanvas Method

Draws the satellites in view to WPF canvas. Red brush satellite - very low signal Orange brush satellite - low signal Yellow brush satellite - medium signal Light green brush satellite - good signal Green brush satellite - very good signal White pen satellite - GPS Orange red pen satellite - GLONASS Yellow pen satellite - BeiDou Blue pen satellite - Galileo Green pen satellite - QZSS Black pen satellite - Unknown

Namespace: ZylSoft.Gps
Assembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.28.8737.22596
XMLNS for XAML: Not mapped to an xmlns.
public static void DrawSatellitesToWpfCanvas(
	this BaseGpsReceiver gpsReceiver,
	Canvas canvas,
	int radius,
	Color backColor,
	Color foreColor


gpsReceiver  BaseGpsReceiver
canvas  Canvas
WPF canvas.
radius  Int32
Radius of the great circle.
backColor  Color
Back color of the view.
foreColor  Color
Fore color of the view.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BaseGpsReceiver. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Put a PictureBox control on your form. In the Draw event of the PictureBox use the following code: gpsReceiver.DrawSatellites(e.Graphics, Math.Min(pictureBox.Width, pictureBox.Height)/2, Color.Black, Color.White);
See Also