changeset 2 | 5cdb891abc1e |
parent 0 | 6b8091ca909a |
1:a573dab6cb46 | 2:5cdb891abc1e |
---|---|
8 |
8 |
9 height = h; |
9 height = h; |
10 width = w; |
10 width = w; |
11 |
11 |
12 // Assignem memòria |
12 // Assignem memòria |
13 pixels = new (char*)[height]; |
13 pixels = new char* [height]; |
14 for (i=0; i<height; i++) |
14 for (i=0; i<height; i++) |
15 pixels[i] = new char[width]; |
15 pixels[i] = new char[width]; |
16 // Memòria assignada |
16 // Memòria assignada |
17 |
17 |
18 //PointsPerLine = new vector<int> |
18 //PointsPerLine = new vector<int> |