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.
--
dda
libcurl4RB, [S]FTP transfers made easy
http://sungnyemun.org/?q=node/8
_______________________________________________
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>