pChart 2.x forum
http://wiki.pchart.net/forum/

Scale in drawFromPNG
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=44
Page 1 of 1

Author:  mathbr [ Wed Dec 29, 2010 12:15 pm ]
Post subject:  Scale in drawFromPNG

Hello

The drawFromPNG functionality looks interesting, and I think that scaling the images could be a nice addition. The user may have an hight-definition image and do not want to scale it for each chart. I like to have image dimensions given as variables that I can change easily, and other dimensions (text sizes and positions, ..) are automatically derived from these variables. The size of some website logo displayed in one corner is then depending on those too.

The user may give
  • a width and/or an height: pChart scales to the exact sizes given
  • a maximal width and/or a maximal height: pChart scales the image such that one dimension is equal to its max and the other is smaller than the corresponding max, without distorsion
  • a minimal width and/or a minimal height: same thing but second dimension is larger than its min
Note that the two last ones are not the same thing as in CSS, and that they are just ideas. Handling a combination of options may be tricky to implement (for example width + max-height).

In the same order of idea, being able to rotate the image may be useful too.

Author:  sph130 [ Tue Feb 08, 2011 6:07 pm ]
Post subject:  Re: Scale in drawFromPNG

any homegrown solutions on this yet? I am looking for similiar.

Author:  jean-damien [ Wed Feb 09, 2011 11:35 am ]
Post subject:  Re: Scale in drawFromPNG

I'll add this topic to the roadmap so you'll have it implemented soon.

JD.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/