ThinkGeo.com    |     Documentation    |     Premium Support

CreateHatchStyle - OutlinePenWidth is int

Hi, I just saw that in the AreaStyle.CreateHatchStyle the OutlinePenWidth is an integer instead of a float.
When creating a GeoPen for an Outline, the width is a float however.
Is this an oversight?
Thanks!

   var areaStyle = AreaStyle.CreateHatchStyle(
       hatchStyle,
       GeoColors.White,
       fillColor,
       outlineColor,
       (int)OutlineWidth, <-- int
       LineDashStyle.Solid,
       0f,
       0f);


new GeoPen(outlineColor, OutlineWidth) <-- float

hi @Julian_Thoms,

Thanks for pointing it out. We’ll fix it as soon as possible.

Regards,
Leo

1 Like

hi @Julian_Thoms,

We’ve fixed the issue in ThinkGeo.Core 14.5.0-beta035. Feel free to give it a try. :slight_smile:

Regards,
Leo

1 Like