PC Review


Reply
Thread Tools Rate Thread

Draw a one pixel point with GDI+

 
 
Pat Keel
Guest
Posts: n/a
 
      8th Jun 2004
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
 
Reply With Quote
 
 
 
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      9th Jun 2004
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

"Pat Keel" <(E-Mail Removed)> wrote in message
news:40c61389$0$21334$(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 pixel wide squares have one pixel missing C Microsoft VB .NET 2 11th Aug 2010 09:52 AM
processing huge bitmap pixel by pixel performance Buthrakaur Microsoft Dot NET Compact Framework 3 8th Jan 2007 09:56 AM
Draw on pixel point with GDI+ Pat Keel Microsoft C# .NET 4 9th Jun 2004 09:56 PM
Draw on pixel point with GDI+ Pat Keel Microsoft C# .NET 0 8th Jun 2004 07:52 PM
Point Clouds - Draw One Pixel Bob Palank Microsoft C# .NET 2 25th Feb 2004 08:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 PM.