BaseGpsReceiverDrawCompass Method |
Draws a compass.
Namespace: ZylSoft.GpsAssembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.28.8737.22596
XMLNS for XAML: Not mapped to an xmlns.
Syntax public void DrawCompass(
Graphics g,
int radius,
Color backColor,
Color foreColor
)
Public Sub DrawCompass (
g As Graphics,
radius As Integer,
backColor As Color,
foreColor As Color
)
Dim instance As BaseGpsReceiver
Dim g As Graphics
Dim radius As Integer
Dim backColor As Color
Dim foreColor As Color
instance.DrawCompass(g, radius, backColor,
foreColor)
public:
void DrawCompass(
Graphics^ g,
int radius,
Color backColor,
Color foreColor
)
member DrawCompass :
g : Graphics *
radius : int *
backColor : Color *
foreColor : Color -> unit
public void DrawCompass(
Graphics g,
int radius,
Color backColor,
Color foreColor
)
public function DrawCompass(
g : Graphics,
radius : int,
backColor : Color,
foreColor : Color
)
function DrawCompass(g, radius, backColor, foreColor);
METHOD DrawCompass(
g AS Graphics,
radius AS LONG,
backColor AS Color,
foreColor AS Color
) AS VOID
No code example is currently available or this language may not be supported.
Parameters
- g Graphics
-
GDI+ drawing surface.
- radius Int32
-
Radius of the compass.
- backColor Color
-
Back color.
- foreColor Color
-
Fore color.
Example
Put a PictureBox control on your form.
In the Draw event of the PictureBox use the following code:
gpsReceiver.DrawCompass(e.Graphics, Math.Min(pictureBox.Width, pictureBox.Height)/2, Color.Black, Color.White);
See Also