Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > What has to be fullfilled to access to Bitmap->Canvas->Pixel?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th April 07:26
m_r <>
External User
 
Posts: 1
Default 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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666