From: "Dana Skovsende" Newsgroups: alt.comp.borland-delphi References: Subject: Re: Delphi 6 flickers when using TImage.Picture.Bitmap.Assign(TBitmap); ok in Delphi 3 Lines: 33 Message-ID: Date: Thu, 28 Jun 2001 13:10:24 +0200 NNTP-Posting-Host: 130.227.200.28 X-Complaints-To: abuse@uni2.dk X-Trace: news.get2net.dk 993726328 130.227.200.28 (Thu, 28 Jun 2001 13:05:28 MET DST) NNTP-Posting-Date: Thu, 28 Jun 2001 13:05:28 MET DST Organization: UNI2 Internet Kunde Xref: cyclone.swbell.net alt.comp.borland-delphi:14538 Use DoubleBuffered := True; Dana "Paul" skrev i en meddelelse news:tjk8gim4rpt80c@corp.supernews.co.uk... > Hi folks > > I've just moved up from Delphi 3 to Delphi 6, but have found that where I > use a line like > > // doodle on a bitmap (bmp: TBitmap) in memory > // ... > // now assign it to the TImage (img1) displayed on the form: > img1.Picture.Bitmap.Assign(bmp); > > to animate an image, I now get bad flickering. This used to work fine with > Delphi 3, so has something changed (such as an additional property I need to > set to get the old behaviour back), or is it time to come up with a new > technique? > > Cheers > > Paul > > paul.jaggard@musicradio.removethisbit.com ========================================================== Cheers I've tried this and it works, but it really really slows things down (from 5% CPU time to 90%). Another one I've since found is to set TImage.Stretch := True, which cures the flicker without hammering the machine, but this may just be a lucky coincidence. Thanks Paul.