Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public:
- int arrimg( Bitmap^ image)
- {
- const int w = image->Width;
- const int h = image->Height;
- const int z = 3;
- int dtab[w][h][z];
- for (int x = 0; x < image->Width; x++)
- {
- for (int y = 0; y < image->Height; y++)
- {
- dtab[x][ y][ 0] = image->GetPixel(x, y).R;
- dtab[x][ y][ 1] = image->GetPixel(x, y).G;
- dtab[x][ y][ 2] = image->GetPixel(x, y).B;
- }
- }
- return dtab;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement