C# Bitmap Imaging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • masood009
    New Member
    • May 2008
    • 1

    C# Bitmap Imaging

    Hi,
    I have been trying to create a bitmap image at run time. I have a limited knowledge and understanding of C#.

    I want to do the following:

    1) Create a bitmap with 698 rows and 72 columns in it.

    2) then give a color to each cell of bitmap using my defined criteria. The color can only be red, green or black or between it ranges among these three colors.

    In short, i want to create a heat map which look likes image present at the following link:

    http://www.csc.mrc.ac. uk/ResearchGroups/GenomicAndMolec ularMedicine/images/MicroarrayHeatm apEdit.jpg

    Plz, someone help me.

    Thanks.....
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Hi,

    Check Bob Powell's GDI+ faq:

    http://www.bobpowell.n et/faqmain.htm

    In particular:
    http://www.bobpowell.n et/creating_images .htm
    http://www.bobpowell.n et/lockingbits.htm

    Regards.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Create an instance of the bitmap class. The arguments will take a width and height attributes.
      You can then use the .SetPixel() function to set the pixel at x,y to a given Color.

      Comment

      Working...