Draw a one pixel point with GDI+

P

Pat Keel

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
Pat
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top