Re: Why floating point for widget positions



If the data is useful then the motion event could be changed to have a
integer pixel part and floating point <1 part for subpixel position.
This floating point data is not read by 99.99999% of the apps written
for gtk.

Mike

On Wed, 23 Mar 2005 13:21:09 +0100, Michael Natterer <mitch gimp org> wrote:
> On Wed, 2005-03-23 at 13:06 +0200, Dov Grobgeld wrote:
> > In Gimp it is used for paintbrush drawing with subpixel positioning
> > of the brush. The actual gray levels created are interpolated according
> > to the gray levels of the paintbrush matrix and the subpixel location.
> > (At least I guess that is how Gimp works. If not, then it is a waste
> > of sub-pixel information, and we should file a bug. ;-)
> 
> That's exactly how it works in GIMP :)
> 
> ciao,
> --mitch
> 
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]