Pixel Programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChillUmesh
    New Member
    • Feb 2007
    • 20

    Pixel Programming

    can we do a program to change colour of each pixel of the form.
    If so can anyone help me in this.

    thnx.....
    Last edited by ChillUmesh; Mar 7 '07, 05:38 AM. Reason: Typing mistake
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    You could use an image on the form and change it

    Comment

    • ChillUmesh
      New Member
      • Feb 2007
      • 20

      #3
      Originally posted by willakawill
      You could use an image on the form and change it
      can u send a sample code

      Comment

      • willakawill
        Top Contributor
        • Oct 2006
        • 1646

        #4
        Originally posted by ChillUmesh
        can u send a sample code
        Well that would mean writing out this code, testing it and then posting it here as I don't happen to have such a sample on this computer. Maybe someone else reading this question will have such a sample for you or a better solution.

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Do you mean a form with contols on it, and you want to change the colour of everything? Or just a blank form, or what?

          For a blank form, just do two nested For loops. One to count across the form, one down. At the intersection, use <formname>.Ps et to set the colour.

          That's the slow version. Setting the BackColor property would have much the same effect, only faster.

          Try playing around with this stuff - don't just sit there waiting for an example, it's more fun to work it out for yourself.

          Comment

          Working...