Hi,
OK, I need some nap (or is it hollyday?)... I didn't even notice that I
used DownTo !
and do not ask me why!
I will reverse the things... Thanks for telling it to me.
Emile
Subject: Re: Following 'Swap Colors', the Code
From: dda <[EMAIL PROTECTED]>
Date: Mon, 12 Jun 2006 09:34:36 +0200
On 6/12/06, Emile Schwarz <[EMAIL PROTECTED]> wrote:
> Subject: Re: Following 'Swap Colors', the Code
> From: dda <[EMAIL PROTECTED]>
> Date: Sun, 11 Jun 2006 18:02:49 +0200
>
> 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]
Isn't it what I already wrote ?
No. You wrote:
// Read the Color, change it to a different one and write it...
For IndexY = SourceH DownTo 0
For IndexX = SourceW DownTo 0
Starting from the end of the image, thus of the ram block that is the
RGBSurface. Better to go from the top, and progress downwards, making
good use of caching.
_______________________________________________
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>