| View previous topic :: View next topic |
| Author |
Message |
M_R Guest
|
Posted: Tue Jan 06, 2004 11:30 pm Post subject: 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
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
|
|
| Back to top |
|
 |
ross Guest
|
Posted: Mon Feb 09, 2004 9:28 pm Post subject: Re: What has to be fullfilled to access to Bitmap->Canvas->P |
|
|
Can you show the code you are using. That would help
decipher the problem.
M_R wrote:
| Quote: | 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
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
|
|
|
| Back to top |
|
 |
|