View unanswered posts | View active topics It is currently Sun Apr 28, 2024 11:52 pm



Reply to topic  [ 4 posts ] 
getWidth() and getHeight() mixed up? 
Author Message
Regular pChart user
Regular pChart user

Joined: Thu Jan 06, 2011 1:51 pm
Posts: 11
Post getWidth() and getHeight() mixed up?
That's how it seems. Someone should look into it.


Fri Jan 07, 2011 12:55 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: getWidth() and getHeight() mixed up?
indeed, looks to be a stupid mixup in the pImage class.

Replace :

Code:
   /* Return the width of the picture */
   function getWidth()
    { return($this->YSize); }

   /* Return the heigth of the picture */
   function getHeight()
    { return($this->XSize); }

By :

Code:
   /* Return the width of the picture */
   function getWidth()
    { return($this->XSize); }

   /* Return the heigth of the picture */
   function getHeight()
    { return($this->YSize); }


Fri Jan 07, 2011 1:22 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: getWidth() and getHeight() mixed up?
I've posted the new 2.0.11 subversion on the pChart web site correcting this bug.

You can get it here : http://www.pchart.net/download


Fri Jan 07, 2011 3:56 pm
Profile WWW
Regular pChart user
Regular pChart user

Joined: Thu Jan 06, 2011 1:51 pm
Posts: 11
Post Re: getWidth() and getHeight() mixed up?
Happy to help :)


Sun Jan 09, 2011 3:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron