gettingstarted
[Top] [All Lists]

Re: Pixel of a line

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Pixel of a line
From: Jean-Jacques Chailloux <jjchailloux at yahoo dot com>
Date: Sat, 31 Dec 2005 06:43:42 -0800 (PST)
Delivered-to: gettingstarted at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OMgkKn7c/2kgEcoBsdphluDrF8GNzaQ+BU7tR5BH1j7uES78evolV/rnpoeLsTzg7rvro5ompvC4P1SHmTRdER0fR0Fy94oBWPeXJ8gDTgn7jK0s2Vdpoe8+sgjHld3sodD9d5bjFYUMGUUPRbh4Hng8bnYPVjVo4DAfck4BA6k= ;
it must be a matter of rounding:
I don't know exactly how anti alias operates
http://en.wikipedia.org/wiki/Anti-aliasing
but it changes the color of both object and background
turn it off and see what happens
jjc
Mtl


--- Fabio Soggia <rb at menssana dot to dot it> wrote:

> Thanks, I used your code, but I have some doubts.
> 
> I tried x1 = 0, y1 = 0, x2 = 10, y2 = 4
> 
> With your code it should be:
> 
> 0     0
> 1     0
> 2     0
> 3     1
> 4     1
> 5     2
> 6     2
> 7     2
> 8     3
> 9     3
> 10    4
> 
> I tried my initial idea, so a new picture, I draw a
> line and check  
> pixel by pixel the color. Using new render (on osx)
> I have antialias  
> and so many colours, using old render I have only
> black and white,  
> but not same pixels.
> 
> 0     0
> 1     1
> 2     1
> 3     1
> 4     2
> 5     2
> 6     3
> 7     3
> 8     3
> 9     4
> 10    4
> 
> Code of the test is available, just ask it.
> Any suggestion? Have I to check every line I
> process? Seems I have to  
> do it about 2'000'000 times for my project.
> Thanks
> Fabio Soggia
> 
> Il giorno 21/dic/05, alle ore 01:21, FreeFL ha
> scritto:
> > ...
> _______________________________________________
> 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>
> 



        
                
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/
_______________________________________________
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>