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 

Re: Problem with BitBlt function

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





PostPosted: Thu Jul 31, 2003 1:20 am    Post subject: Re: Problem with BitBlt function Reply with quote



Ruby wrote:
Quote:

Hi, this code works (I can see the image) only when i enable
line 2, why? Why "ProcessMessages" is not enough for it to work?

On a timer event ( Every 200ms) -

1: BitBlt( Form1->Video_Data->Canvas->Handle,
0, 0, 50, 50, TempPic->Canvas->Handle,
0, 0, SRCCOPY );

2: // Form1->Video_Data->Refresh();
3: Application->ProcessMessages();

I'm going to take a wild guess and say Video_Data is a
TImage. When you modify the bitmap using the API,
how else is the TImage supposed to know that it has
been modified? Yes, you have to tell it so that it knows
to redraw itself.




Back to top
Ruby
Guest





PostPosted: Sun Aug 03, 2003 7:34 pm    Post subject: Re: Problem with BitBlt function Reply with quote




OK, Thanks :-)

"Fishface" <invalid (AT) ddress (DOT) ok?> wrote:
Quote:
Ruby wrote:

Hi, this code works (I can see the image) only when i enable
line 2, why? Why "ProcessMessages" is not enough for it to work?

On a timer event ( Every 200ms) -

1: BitBlt( Form1->Video_Data->Canvas->Handle,
0, 0, 50, 50, TempPic->Canvas->Handle,
0, 0, SRCCOPY );

2: // Form1->Video_Data->Refresh();
3: Application->ProcessMessages();

I'm going to take a wild guess and say Video_Data is a
TImage. When you modify the bitmap using the API,
how else is the TImage supposed to know that it has
been modified? Yes, you have to tell it so that it knows
to redraw itself.



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.