PDA

View Full Version : Changing image size at runtime


RobbyH
02-08-2003, 02:27 AM
Is there any way to, at runtime, resize an image.
I am creating a simple bar graph, and the only thing I can think of is to have multiple stacked images(the more, the more precise the graph) that I show a certain amount of depending on an amount I get from stored figures.
It would be a lot easier if I could simply have my twelve bars as single images, that I resize vertically depending again on the input from my stored figures.
If anyone has any ideas besides these two on what I could do to make a fairly precise, yet simple bar graph, let me know.
Rob

Corey
02-08-2003, 03:16 AM
You can do this with either a flash object(s) or in a web browser object.

Using a flash object for example you could use several instances of a single "bar" .swf and get extremely precise results very quickly.

Actually this might be helpful to others too so I'll whip up an example and post it here in a bit...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

RobbyH
02-08-2003, 03:50 AM
Thanks Corey, that would be great to see!
I was going to have my graph show the difference in dollar amounts, but I think now it would be far better to show this as a percentage, rather than a dollar figure. I am using this graph to show a monthly bills amounts compared to the previous twelve months. I figure it would be difficult to show as a dollar figure, as large bills out of the range of the graph would be useless, unless you had it so that the bottom bar of the graph moved to the closest hundred.

Corey
02-08-2003, 09:02 PM
Here you go /ubbthreads/images/icons/smile.gif

http://www.indigorose.com/ubbthreads/showthreaded.php?Cat=&Board=_video_tutes&Number=16 556&Search=true&Forum=All_Forums&Words=&Match=Enti re%20Phrase&Searchpage=0&Limit=25&Old=1day&Main=16 556

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)