Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsViewNET

Class
Pen

Properties
Red
Blue
Green
Width
Style

Pen GpsTools v2.00 and later

A Pen is used to determine the color and width of an objects borders such as an Ellipse, Rectangle or the width and color of a Line.

By default a Pen is black and has a width of 1

Visual Basic sample to use a Pen:
' objPos and Map1 is defined elsewhere
' (see SimpleMap sample in the SDK.)

Dim objPen As New Pen
Dim objRect As Rectangle

Set objRect = Map1.NewRectangle()

objPen.Width = 4 ' Border width 4 pixels
objPen.Red = 255 ' Full red
objPen.Green = 128 ' Some green
objPen.Blue = 0 ' No Blue

Set objRect.Pen = objPen
Set objRect.Position = objPos ' Position

Map1.Update ' Update map view



Compact Framework
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login