BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What has to be fullfilled to access to Bitmap->Canvas->Pixel

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
M_R
Guest





PostPosted: Tue Jan 06, 2004 11:30 pm    Post subject: What has to be fullfilled to access to Bitmap->Canvas->Pixel Reply with 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
ross
Guest





PostPosted: Mon Feb 09, 2004 9:28 pm    Post subject: Re: What has to be fullfilled to access to Bitmap->Canvas->P Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.