Hi Christian,
thank you for your kind answer (expanded from Joe's answer).
I used x,y naturally (For 0 = x To ; For 0 = y To).
Nota: I read in an anciant book that at the times end, things will be
reversed. I am starting to think strange lately... (use :( or:)
depending on your own feeling...)
Emile
Subject: Re: Swap colors of a photo
From: [EMAIL PROTECTED] (Christian Schmitz)
Date: Sat, 10 Jun 2006 11:34:50 +0200
Maarten de Vries <[EMAIL PROTECTED]> wrote:
Hi, I tested your loop, and it worked fine for me. The image
(a photo) turned nicely blue in about half a second. Then I tried to add =
a
progressbar, and suddenly it took about 8 seconds. So, are you doing
anything else (like updating a progressbar) inside the loop?
for a progress bar, do some math.
like
p=3D100*y/height
if p<>progressbar.value then // change only 100 times
progressbar.value=3Dp
updatenow // refresh window
end if
PS: Most developers go in the outer loop about y and in the inner loop
about x to use the improved caching of newer processors.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>