quick question: when making a image smaller through actionscript, is there a way to keep the height to width pixel ratio and keep it a good resolution? a.k.a so it's nots all pixelated and shows it's obviously been de-scaled.
cheers
scaling images actionscript
Started by
darkson01
, May 13 2009 05:56 AM
2 replies to this topic
#1
Posted 13 May 2009 - 05:56 AM
#2
Posted 19 August 2009 - 08:39 AM
The only way you would be able to do this is to is to make sure that you decrease your x and y proportionally to keep image restraints.
For example... If you have an image that is 800 x 600. And you want that image to be at a width of 500 instead..
Bad Code .. >
Good Code ..>
good luck!
For example... If you have an image that is 800 x 600. And you want that image to be at a width of 500 instead..
Bad Code .. >
whatever.x = 500; whatever.y = 600;
Good Code ..>
whatever.x = 500; whatever.y = 300;
good luck!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users