ploting just one pixel

colin9876

Active Member
Licensed User
I need to be able to plot a single pixel.

Before someone said use line but ...
if you do form.line(x,y,x,y, ) you get nothing
and form.line(x,y,x+1,y, ) gives 2 pixels???:sign0085:
 

Cableguy

Expert
Licensed User
Longtime User
Using ImageLib, you can "draw" a single pixel by cahnging its color...

--------------------------------------------------------------------------------
From the Help files...

Changes the color of the specified pixel.
Syntax: SetPixel (x As Int32, y As Int32, color As Color)


Example:
bitmap1.SetPixel (5,5, cRed)
 
Top