gettingstarted
[Top] [All Lists]

Re: faster image manipulations

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: faster image manipulations
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 19 Apr 2004 15:02:25 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <5BF4BD32-91C6-11D8-AE4F-000393D86898 at vuw dot ac dot nz>
At 5:56 PM +1200 4/19/04, ken sobel wrote:

Greetings. I'd like to change the contrast for an image, but the way that I do it now is very poky...it takes several seconds for the program to calculate the new luminance values, then place the new image into the canvas's background.

Use RGBSurface.Transform. And next year, try to make it to the REALWorld conference (I demonstrated exactly this there). :)

Cheers,
- Joe

P.S. If you decide you can't use Transform, then you should at least be using RGBSurface.Pixel, and remember to move *everything* you can outside the loops and into local variables, including the RGBSurface reference.

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>