I have a bitmap and I want to get an array with the colors.
But my code does not work:+ TRgb* rgbtmp;
for(TInt x = 0; x < width; x++) {
for(TInt y = 0; y < height; y++) {
image->GetPixel(*rgbtmp, TPoint(x,y));
imageBuffer[x * y + 0] = (unsigned char)rgbtmp->Red();
[...]
How can I successfully call GetPixel() ? How do I have to declare my TRgb value rgbtmp?
How do I call Red() to get the red value?
Could someone enlighten me by changing my code?