Purpose
Returns a pen width for a given point size. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
PointsToPenWidth( pointsize )
pointsize is a float value in tenths of a point.
Return Value
SmallInt
Description
The PointsToPenWidth() function takes a value in tenths of a point and converts that into a pen width.
Example
Include "MAPBASIC.DEF"
Dim Width As Integer
Dim p_bus_route As Pen
Width = PointsToPenWidth(1.7)
p_bus_route = MakePen(Width, 9, RED)
See Also:
CurrentPen() function, IsPenWidthPixels() function, MakePen() function, Pen clause, PenWidthToPoints() function, StyleAttr() function