Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello codeproject,

I want a component to display the image in matrix, I have not found,
how transforms (listbox, listview, textbox and dataview) to a matrix to desplay the image values...

Thank you friends
Posted

You need to keep a DataList control with repeat column="n" and rows="n" & bind only (n*n)images dataItem , where dim of matrix is n.

I hope its help you.
 
Share this answer
 
Comments
pablo ramos1 16-Dec-11 9:01am    
give me an exemple plz i'm begainner
Have a look at similar question with solution
How to convert image to pixel matrix in C#?[^]
Convert Bmp image to matrix[^]

from Reference link :-
C#
public Color[][] GetBitMapColorMatrix(string bitmapFilePath)
      {
          bitmapFilePath = @"YourImage";
            Bitmap b1 = new Bitmap(bitmapFilePath);
           int hight = b1.Height;
           int width = b1.Width;
            Color[][] colorMatrix = new Color[width][];

            for (int i = 0; i < width; i++)

            {
               colorMatrix[i] = new Color[hight];

                for (int j = 0; j < hight; j++)

                {
                    colorMatrix[i][j] = new Color();
                   colorMatrix[i][j] = b1.GetPixel(i, j);

                }
            }
            return colorMatrix;

        }
 
Share this answer
 

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