🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3726

Re: Slow pictures

#3726
From: JD
Date: Sat, 29 Apr 2006 17:30
31 lines
2027 bytes
Jos� <jose@127.0.0.1> wrote:
>
>>Could you post 4 pictures in borland.public.attachments
>>so we can test in the same way?
>
>I did.

Well they're not there.

What I know so far is that you're using TImages and relying
on them to do the painting when speed is an issue for you
you. This is a mistake. You need to be managing the painting
yourself and should be using a TBitmap instead.

The general order of operation should be:

    1) Load the image
    2) StretchDraw it to a bitmap in the appropriate size
    3) Display it
    4) While waiting for the timer, repeat 1 & 2 on the next image
    5) Timer activates so begin at step 3

I have a print preview that zooms to 400% for 8.5 x 11 paper
and it's a huge bitmap that paints instantly because it uses
StretchDraw to a temporary bitmap that is then painted. If you
use StretchDraw directly to the screen, performance will
suffer greatly and I suspect that this is exactly what you're
doing by setting the Stretched property of the TImage.

~ JD
Technical Details
Message-ID: <4453a2a4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <e7t452dmulukkq0ss9hcd60jlc36lgbfo7@4ax.com> <44527f19$1@newsgroups.borland.com> <858652doobhg9chjamgh9ms9edordvj4mk@4ax.com> <44532d15$1@newsgroups.borland.com> <p3u652ldr3amr2tihvja49n3rvqph0q477@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,65d95fe0c39b12ef
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Slow pictures
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 205.188.116.136     
X-Forwarded-For: 172.134.1.47
References: <e7t452dmulukkq0ss9hcd60jlc36lgbfo7@4ax.com> <44527f19$1@newsgroups.borland.com> <858652doobhg9chjamgh9ms9edordvj4mk@4ax.com> <44532d15$1@newsgroups.borland.com> <p3u652ldr3amr2tihvja49n3rvqph0q477@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4453a2a4$1@newsgroups.borland.com>
Date: 29 Apr 2006 10:30:12 -0700
X-Trace: newsgroups.borland.com 1146331812 207.105.83.66 (29 Apr 2006 10:30:12 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail