Miura Posted March 20, 2003 Posted March 20, 2003 Hi, How can I draw a single pixel ? If I use Drawline (pen1,100,100,100,100) Nothing is showed on the screen if I use Drawline (pen1,100,100,101,101) A small linie is showed, as it should. The function in older VB was called PSET !! Quote
*Experts* Bucky Posted March 21, 2003 *Experts* Posted March 21, 2003 Draw a rectangle with a width and height of 1. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Miura Posted March 21, 2003 Author Posted March 21, 2003 Hmmm, It's look like a height of 2 pixels. when using: transpen1 = New Pen(System.Drawing.Color.Yellow, 1) grafik.DrawRectangle(transpen1, 50, 50, 1, 1) any idea's ? Quote
*Gurus* divil Posted March 21, 2003 *Gurus* Posted March 21, 2003 I'd use FillRectangle instead, still with a width and height of 1. I've done it in the past and it's worked. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.