[c++]How do you draw a line on a canvas in Noesis that is 1 pixel thick
Posted: 15 Mar 2019, 07:56
I'm using the Path class to draw on a canvas in Noesis and even though I set StrokeThickness = 1, the line shows up 2 pixels wide - it's almost as if the minimum thickness is two. How do I draw a line that is truly 1 pixel thick?
https://stackoverflow.com/questions/287 ... ixel-thick
https://stackoverflow.com/questions/287 ... ixel-thick
Code: Select all
<Border BorderThickness="1" BorderBrush="Red" Height="20">
<Canvas>
<Path SnapsToDevicePixels="True" Stroke="Red" StrokeThickness="1" Data="M 5,5 L 100,5"/>
<Path SnapsToDevicePixels="True" Stroke="Red" StrokeThickness="1" Data="M 5,10 L 100,10"/>
<Path SnapsToDevicePixels="True" Stroke="Red" StrokeThickness="1" Data="M 5,15 L 100,15"/>
<Path Stroke="Red" StrokeThickness="1" Data="M 5,25 L 100,25"/>
<Path Stroke="Red" StrokeThickness="1" Data="M 5,30 L 100,30"/>
<Path Stroke="Red" StrokeThickness="1" Data="M 5,35 L 100,35"/>
</Canvas>
</Border>