What has to be fullfilled to access to Bitmap->Canvas->Pixel?
What has to be fullfilled to access to Bitmap->Canvas->Pixel[x][y]?
Having a TBitmap which is filled with a graphic.
When accessing to Bitmap->Canvas->Pixel[x][y] (where
0<=x<Bitmap->Width, 0<=y<Bitmap->Height) I always got value 0 (which
should not be the case).
For debugging reasons I inserted the snippet
_bitmap->SaveToFile("c:\\my_bitmap.bmp");
which correctly saves my picture and additionally
the pixel-access now works fine (values != 0).
Removing the snippt again was the same (faulty) result as before.
What am I doing wrong? Or: is there another less time-consuming way to
make me access to TCanvas::Pixel?
Thank you,
Michael
|