Draw a single pixel

Miura

Active member
Joined
Mar 13, 2003
Messages
27
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 !!
 
Hmmm, Its 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 ideas ?
 
Id use FillRectangle instead, still with a width and height of 1. Ive done it in the past and its worked.
 
Back
Top