Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rgb **pixels = (rgb **)malloc (height * sizeof(rgb *));
- for (int row = 0; row < height; ++row)
- {
- pixels[row] = (rgb *)malloc(width * sizeof(rgb));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement