Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public:
  2. int arrimg( Bitmap^ image)
  3. {
  4. const int w = image->Width;
  5. const int h = image->Height;
  6. const int z = 3;
  7. int dtab[w][h][z];
  8. for (int x = 0; x < image->Width; x++)
  9. {
  10. for (int y = 0; y < image->Height; y++)
  11. {
  12. dtab[x][ y][ 0] = image->GetPixel(x, y).R;
  13. dtab[x][ y][ 1] = image->GetPixel(x, y).G;
  14. dtab[x][ y][ 2] = image->GetPixel(x, y).B;
  15. }
  16. }
  17. return dtab;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement