Hi,

REALbasic 2006r2

In a current project who create a Mask to the dropped Icon (max size: 128 x 128), I just added some color variations (replace the original color by another) and I have fun with it.

But what is fast on 128 x 128 image is low, too low on a photo (Millions of pixels)...


How can I ?
Change the cmy values of the pixel in a faster way ?
I actually use RGBSurface and change the Cyan value of a pixel by either Cyan (!), Magenta or Yellow and so on... in a loop.

Since the loop change/replace | read/write all pixels of the image, it takes time, long time...

Do you have a better (faster) REALbasic native solution ?


TIA,

Emile




In other words, inside two nested loops, I use RGBSurface.Pixel, get a part of its cmy values and use only Cyan, Magenta or Yellow in the replaced (still with RGBSurface.Pixel) pixel and assign the new color to the image. That process is slow.

Using RGBSurface.Transform works fine for Brightness / Darkness / Invert and some other things, but I am in front of a wall for what I want to do now.
_______________________________________________
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