Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to draw a point in GDI+

Posted on 2004-11-05
1
Medium Priority
?
544 Views
Last Modified: 2008-02-01
Is there a technique to draw a single point in GDI+, or do I have to create an image and draw that?
0
Comment
Question by:natejacobs
1 Comment
 
LVL 1

Accepted Solution

by:
andyalmq earned 500 total points
ID: 12507311
I don't believe there is a way to directly create a single point in GDI+.  I was trying to do the same thing recently, but the only way I found to do it was to create a bitmap, and use setpixel to place the pixel where I wanted it.  It may be possible to accomplish this with The DrawRectangle method.  Seems to me, depending on the pen, a rectangle with a width and height of 1 would be a single pixel, although I didn't think to try that when I was working on the similar problem.  In my case the bitmap with setpixel was sufficient.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question