You'll save a little time doing
 For IndexY = 0 To SourceH
   For IndexX = 0 To SourceW
[same reason as putting the Y loop outside, memory caching]

The line
If UserCancelled Then Exit // Avoid any Infinite Loop
is placed outside both loops ==> will never be called...

--
dda
libcurl4RB, [S]FTP transfers made easy
http://sungnyemun.org/?q=node/8


On 6/11/06, Emile Schwarz <[EMAIL PROTECTED]> wrote:
Hi all,

REALbasic 2006r2 Commercial Pro
Mac OS X 10.4.6

here is the complete code to swap a color (take a part of the original
color as the new color).

I didn't included the DisableBackgroundTasks or BoundsCheckings or... in
the code.


2231, 2461 is the size of my testing image file, and it takes around 6
seconds to achieve the code execution. As I told here previously, this
is a lot of time (I didn't measure it prior today).

So, I think that I will add a Progress Bar, so I will not be "stressed"
anymore to not see the time "ellapsing" (I will not think that the
program is broken...).

Feel free to add your comments in a reply,


Emile
_______________________________________________
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>

Reply via email to