Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 !!

  • *Experts*
Posted
Draw a rectangle with a width and height of 1.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted

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 ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...