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