Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please go through the code below..it is brief...
C#
button_click
 {
 for (i = 0; i < 3; i++)
 {

 for (j = 0; j < 3; j++)
 {
 Color pixelColor = bm.GetPixel(i, j);
 b = pixelColor.R;
 ADDINARRAY(b);

 c = pixelColor.G;
 ADDINARRAY(c);
 d = pixelColor.B;
 ADDINARRAY(d);

  
 }
 }
}

      void ADDINARRAY(int value)
       {

           listBox1.Items.Add(value);
       }

i am laoding the items of the above loop in a listbox...and then i have to take 3*9 array..for
laoding the array through list box..is there any other way to load directly in to the array ..without the need of listbox...using the above loop.

[Edit]Code block added[/Edit]
Posted
Updated 23-Feb-13 0:35am
v2
Comments
StM0n 24-Feb-13 2:16am    
Sorry, I don't get the question? What do you want to achieve?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900