BaseGpsReceiverDrawCompassWithSkin(Graphics, String, Int32) Method |
Draws a compass, using a custom skin.
Namespace: ZylSoft.GpsAssembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.29.9208.19412
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic void DrawCompassWithSkin(
Graphics g,
string imagePath,
int radius
)
Public Sub DrawCompassWithSkin (
g As Graphics,
imagePath As String,
radius As Integer
)
Dim instance As BaseGpsReceiver
Dim g As Graphics
Dim imagePath As String
Dim radius As Integer
instance.DrawCompassWithSkin(g, imagePath,
radius)
public:
void DrawCompassWithSkin(
Graphics^ g,
String^ imagePath,
int radius
)
member DrawCompassWithSkin :
g : Graphics *
imagePath : string *
radius : int -> unit
public void DrawCompassWithSkin(
Graphics g,
String imagePath,
int radius
)
public function DrawCompassWithSkin(
g : Graphics,
imagePath : String,
radius : int
)
function DrawCompassWithSkin(g, imagePath, radius);
METHOD DrawCompassWithSkin(
g AS Graphics,
imagePath AS STRING,
radius AS LONG
) AS VOID
No code example is currently available or this language may not be supported.
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