BaseGpsReceiverWpfExtensionsDrawSatellitesSignalToWpfCanvas(BaseGpsReceiver, Canvas, Int32, Int32, Color, Color, Color, Int32) Method |
Draw the signals of 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
Namespace: ZylSoft.GpsAssembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.28.8737.22596
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static void DrawSatellitesSignalToWpfCanvas(
this BaseGpsReceiver gpsReceiver,
Canvas canvas,
int width,
int height,
Color backColor,
Color pseudoRandomCodeFontColor,
Color signalToNoiseRatioFontColor,
int maxSatelliteCount = 0
)
<ExtensionAttribute>
Public Shared Sub DrawSatellitesSignalToWpfCanvas (
gpsReceiver As BaseGpsReceiver,
canvas As Canvas,
width As Integer,
height As Integer,
backColor As Color,
pseudoRandomCodeFontColor As Color,
signalToNoiseRatioFontColor As Color,
Optional maxSatelliteCount As Integer = 0
)
Dim gpsReceiver As BaseGpsReceiver
Dim canvas As Canvas
Dim width As Integer
Dim height As Integer
Dim backColor As Color
Dim pseudoRandomCodeFontColor As Color
Dim signalToNoiseRatioFontColor As Color
Dim maxSatelliteCount As Integer
gpsReceiver.DrawSatellitesSignalToWpfCanvas(canvas,
width, height, backColor, pseudoRandomCodeFontColor,
signalToNoiseRatioFontColor, maxSatelliteCount)
public:
[ExtensionAttribute]
static void DrawSatellitesSignalToWpfCanvas(
BaseGpsReceiver^ gpsReceiver,
Canvas^ canvas,
int width,
int height,
Color backColor,
Color pseudoRandomCodeFontColor,
Color signalToNoiseRatioFontColor,
int maxSatelliteCount = 0
)
[<ExtensionAttribute>]
static member DrawSatellitesSignalToWpfCanvas :
gpsReceiver : BaseGpsReceiver *
canvas : Canvas *
width : int *
height : int *
backColor : Color *
pseudoRandomCodeFontColor : Color *
signalToNoiseRatioFontColor : Color *
?maxSatelliteCount : int
(* Defaults:
let _maxSatelliteCount = defaultArg maxSatelliteCount 0
*)
-> unit
/** @attribute ExtensionAttribute */
public static void DrawSatellitesSignalToWpfCanvas(
BaseGpsReceiver gpsReceiver,
Canvas canvas,
int width,
int height,
Color backColor,
Color pseudoRandomCodeFontColor,
Color signalToNoiseRatioFontColor,
int maxSatelliteCount = 0
)
public static function DrawSatellitesSignalToWpfCanvas(
gpsReceiver : BaseGpsReceiver,
canvas : Canvas,
width : int,
height : int,
backColor : Color,
pseudoRandomCodeFontColor : Color,
signalToNoiseRatioFontColor : Color,
maxSatelliteCount : int
)
ZylSoft.Gps.BaseGpsReceiverWpfExtensions.DrawSatellitesSignalToWpfCanvas = function(gpsReceiver, canvas, width, height, backColor, pseudoRandomCodeFontColor, signalToNoiseRatioFontColor, maxSatelliteCount);
STATIC METHOD DrawSatellitesSignalToWpfCanvas(
SELF gpsReceiver AS BaseGpsReceiver,
canvas AS Canvas,
width AS LONG,
height AS LONG,
backColor AS Color,
pseudoRandomCodeFontColor AS Color,
signalToNoiseRatioFontColor AS Color,
maxSatelliteCount AS LONG := 0
) AS VOID
No code example is currently available or this language may not be supported.
Parameters
- gpsReceiver BaseGpsReceiver
- this
- canvas Canvas
- WPF canvas.
- width Int32
- Width.
- height Int32
- Height.
- backColor Color
- Back color of the view.
- pseudoRandomCodeFontColor Color
- Color of pseudo random code.
- signalToNoiseRatioFontColor Color
- Color of signal to noise ratio.
- maxSatelliteCount Int32 (Optional)
- Maximum number of satellites to be shown.
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).
See Also