Groups | Blog | Home
all groups > c# > june 2004 >

c# : Draw a one pixel point with GDI+


Pat Keel
6/8/2004 9:29:25 PM
Hi there,
I'm looking for a solution to draw a one pixel sized point to a graphics
control. E.g. DrawLine(10,10, 11,11) draws 2 pixels, DrawLine(10,10,
10,10) has no effect.
How to do?
Thanks
Dmitriy Lapshin [C# / .NET MVP]
6/9/2004 1:10:25 PM
Hi,

Possibly not the best solution, but you can use GDI's SetPixel method
through P/Invoke.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

[quoted text, click to view]
AddThis Social Bookmark Button