ploting just one pixel

Discussion in 'Questions (Windows Mobile)' started by colin9876, Nov 30, 2007.

  1. colin9876

    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:
  2. Cableguy

    Cableguy Expert Licensed 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)

    bitmap1.SetPixel (5,5, cRed)