UCHAR *bitmapData; // the actual bitmap image data
Then I declared a array of pointers...
UCHAR **bitmap; // array of pointers to the start of each line in bitmapData
Now I am at the point where all I need to do is set the values in bitmap to the starting address of each line in bitmapData. My solution was to use the following code but it causes my computer to crash :-( ...
bitmap[currentLine]=&(bitmapData[currentLine * bitmapInfoHeader.biWidth]);
Would someone please show me the correct way to code the above or explain a better way.
In case the thought has occured to anyone why I am trying to doing this. It is because I would like to be able to plot to a bitmap using this format...
bitmapImage[y][x] = color;
and also to copy from one bitmap to another even if their dimensions are not identical like this
bitmapImage1[y][x] = bitmapImage2[y][x];
Thanx for any info, *POW*
[This message has been edited by POW (edited December 23, 1999).]