1. Home
  2. Computing & Technology
  3. Delphi Programming

Flicker free TImage in Delphi

By Zarko Gajic, About.com Guide

In Delphi 6 the csOpaque (in TControlStyle) is only set when the Proportional property is False, Stretch is True and Transparent is False. In Delphi 5 (and prior) csOpaque is set if Transparent is False and Stretch is True (or the bitmap you want to display is greater or equal size of the Timage) which make sense.

Conclusion. To draw in a TImage component without the flicker effect (in D6) you have to set the Stretch property to TRUE - even when you don't want the bitmap to get stretched (if a graphics is of the equal size to the TImage in which it is displayed)

For an example see this article: Screen Shuffling with Delphi

Delphi tips navigator:
» Get the line number of a selected row in a DBGrid
« Converting from TFileTime to TDateTime

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2002 Delphi Tips
  7. Flicker free TImage in Delphi

©2009 About.com, a part of The New York Times Company.

All rights reserved.