Skip Menu |

This queue is for tickets about the Image-Base CPAN distribution.

Report information
The Basics
Id: 59113
Status: resolved
Priority: 0/
Queue: Image-Base

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ellipse generating fractional x,y points
Date: Tue, 06 Jul 2010 10:07:18 +1000
To: bug-Image-Base [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
With Image::Base 1.07 the program foo.pl gets some fractional coordinates going to xy() from an ellipse() call, x=3.5 y=3 white where I hoped a subclass would see just integers from the base drawing. The 0.5 ones near the end like x=0.5 y=2 white seem particularly doubtful since rounding that down draws at x=0 which is outside the requested box 1,1 to 6,3.
use strict; use warnings; { package MyImage; use base 'Image::Base'; sub new { my ($class, %self) = @_; return bless \%self, $class; } sub xy { my ($self, $x, $y, $colour) = @_; print "x=$x y=$y $colour\n"; } } my $image = MyImage->new(-width => 10, -height => 10); $image->ellipse (1,1, 6,3, 'white');
On Tue Jul 06 04:21:37 2010, user42@zip.com.au wrote: Show quoted text
> With Image::Base 1.07 the program foo.pl gets some fractional > coordinates going to xy() from an ellipse() call,
I'm just babysitting this module, but if someone comes up with a patch I can apply it. I can also transfer maintainership to someone who wants to take over the module.
Subject: Re: [rt.cpan.org #59113] ellipse generating fractional x,y points
Date: Wed, 15 Sep 2010 11:11:07 +1000
To: bug-Image-Base [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
"brian d foy via RT" <bug-Image-Base@rt.cpan.org> writes: Show quoted text
> > I'm just babysitting this module, but if someone comes up with a patch > I can apply it. I can also transfer maintainership to someone who > wants to take over the module.
I'll have a go at the bugs I reported. Shouldn't be too hard to iron out a bit. If no-one else is active I can take upload perms and go through a couple of iterations (id KRYDE on pause).
On Tue Sep 14 21:12:16 2010, user42@zip.com.au wrote: Show quoted text
> I'll have a go at the bugs I reported. Shouldn't be too hard to iron > out a bit. If no-one else is active I can take upload perms and go > through a couple of iterations (id KRYDE on pause).
You are now a comaintainer. Good luck :)
Fixed in my 1.09.