| View previous topic :: View next topic |
| Author |
Message |
RSK Guest
|
Posted: Sat Jun 05, 2004 3:25 pm Post subject: FillRect |
|
|
Hi all,
Using TCanvas.FillRect cause a fliker effect in any canvas. Is there an
better way.
Best regards,
RSK.
|
|
| Back to top |
|
 |
RandomAccess Guest
|
Posted: Sat Jun 05, 2004 5:22 pm Post subject: Re: FillRect |
|
|
How big is the rect?
Are you doing this in tight loop?
What exactly are you doing and why?
Also, what does the canvas belong to?
TImage? TPaintBox?
best regards
|
|
| Back to top |
|
 |
RSK Guest
|
Posted: Sun Jun 06, 2004 3:48 pm Post subject: Re: FillRect |
|
|
Hi,
It's small (50*50 px). Canvas is TImage.
No any loop.
Thanks.
RSK.
"RandomAccess" <Random (AT) Access (DOT) com> wrote
| Quote: | How big is the rect?
Are you doing this in tight loop?
What exactly are you doing and why?
Also, what does the canvas belong to?
TImage? TPaintBox?
best regards
|
|
|
| Back to top |
|
 |
RandomAccess Guest
|
Posted: Mon Jun 07, 2004 2:09 am Post subject: Re: FillRect |
|
|
"RSK" <Tecdiscuss (AT) Yahoo (DOT) com> wrote
| Quote: | Hi,
It's small (50*50 px). Canvas is TImage.
No any loop.
Thanks.
RSK.
|
If no loop, then I assume you see flicker when you resize the window.
I understand that Delphi 7 has a flicker problem with TImage but I do not
know the solution as I still use Delphi 5.
You can try to set doublebuffered := true to the parent control of the
TImage.
best regards
|
|
| Back to top |
|
 |
Ma Xiaoguang Guest
|
Posted: Mon Aug 02, 2004 1:05 am Post subject: Re: FillRect |
|
|
Hi,
I have the same problem with Delphi 6. A friend which was in this forum
has told me a method to handle the problem -- just to set the Stretch
property of the TImage to True! Does it work with Delphi 7? I don't know,
because I don't have it. Try the method. Good luck.
Best regards.
Xiaoguang
"RSK" <Tecdiscuss (AT) Yahoo (DOT) com> wrote
| Quote: | Hi,
It's small (50*50 px). Canvas is TImage.
No any loop.
Thanks.
RSK.
"RandomAccess" <Random (AT) Access (DOT) com> wrote in message
news:40c20153 (AT) newsgroups (DOT) borland.com...
How big is the rect?
Are you doing this in tight loop?
What exactly are you doing and why?
Also, what does the canvas belong to?
TImage? TPaintBox?
best regards
|
|
|
| Back to top |
|
 |
|