🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.graphics
3 messages
3 total messages Started by David HAROUCHE Fri, 25 Jul 2008 20:16
Flickering...
#176
Author: David HAROUCHE
Date: Fri, 25 Jul 2008 20:16
14 lines
1483 bytes
I build a TBitmap independently of painting a TPaintBox, and within Paint 
method of this TPaintBox, I simply Canvas.Draw the previously drawn 
TBitmap...!

As I use the TransparentColor and Transparent property of that TBitmap, I 
can use it on a StayOnTop-Transparent TForm so that it seems like something 
drawn over the desktop...

That doesn't work if I do "animate" the TBitmap...by "rotating" it for 
example...

Any clue...?

DH 
Re: Flickering...
#180
Author: Nils Haeck
Date: Fri, 25 Jul 2008 22:17
26 lines
1748 bytes
Yes, you should store the rectangle you draw in first, then draw this 
rectangle to your bitmap, then draw your bitmap content, then blit it to the 
screen.

What you do now is drawing your bitmap over and over, over the same 
background, smearing it probably.

Nils

"David HAROUCHE" <metanil@hotmail.com> schreef in bericht 
news:488a3499@newsgroups.borland.com...
>I build a TBitmap independently of painting a TPaintBox, and within Paint 
>method of this TPaintBox, I simply Canvas.Draw the previously drawn 
>TBitmap...!
>
> As I use the TransparentColor and Transparent property of that TBitmap, I 
> can use it on a StayOnTop-Transparent TForm so that it seems like 
> something drawn over the desktop...
>
> That doesn't work if I do "animate" the TBitmap...by "rotating" it for 
> example...
>
> Any clue...?
>
> DH
> 
Re: Flickering...
#187
Author: David HAROUCHE
Date: Mon, 28 Jul 2008 00:33
12 lines
1418 bytes
That is wat I found to snap the screen... Taking only a specified TRect is 
easy, but what is hard is to take a snap of what is NOW under that 
TPaintBox...

NOW is to be understood as "at the time I decide, whatever a user has set 
some Active WallPaper or Web pages on the desktop...

Something like in attachment...with a dynamic web page over the Desktop 
refreshed at a user wish, but over all windows, a transparent bitmap will be 
redrawn as a user-defined pulsing TTimer...

DH 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads