realbasic-nug
[Top] [All Lists]

Re: Reversing an image

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Reversing an image
From: Ed Kleban <Ed at Kleban dot com>
Date: Thu, 29 Dec 2005 21:10:26 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcYM7pSC0tZx33jhEdqCUAANk0o3Jg==
Thread-topic: Reversing an image
I suspect you can likely download it from ftp://ftp.realsoftware.com, except
for the minor detail that the ftp server appears to be down right now.  I'm
not sure whether a 5.2 license will work for 5.5 or whether you'd need an
upgrade.




On 12/29/05 8:22 PM, "Ben Farhner" <benjamin at farhner dot com> wrote:

> Well I got it all sorted out by removing the progress bar and
> replacing it with chasingarrows. I wish I could use the
> RGBSurface.Transform(), but its not available in 5.2.4. Is it still
> possible to get 5.5?
> 
> Ben Farhner
> CEO / Head Developer
> farhnware
> http://macware.byethost5.com
> 
> 
>> Hi,
>> 
>> Okay, I have a thread that reverses an image. Heres the code:
>> 
>>    for i=0 to p.width-1
>>      for j=0 to p.height-1
>>        c=r1.pixel(i,j)
>>        r2.pixel(i,j)=rgb(255-c.red,255-c.green,255-c.blue)
>>        progress.prog.value=progress.prog.value+1
>>      next
>>      progress.prog.value=progress.prog.value+1
>>    next
>> 
>> The problem is, that takes over 8 seconds. Other programs, such as
>> Seashore, do it instantly. I'm using RGBSurfaces, which is supposed
>> to be faster, but is there a faster way? I'm on RB 5.2.4, Mac OS X
>> 10.4.3. Thanks,
>> 
>> 
>> Ben Farhner
>> CEO / Head Developer
>> farhnware
>> http://macware.byethost5.com
> 
> _______________________________________________
> 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>


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


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