This content has been marked as final. Show 8 replies
scaling is easy. just adjust the bitmaps width and height.
for the other issues check c-rocks recent thread on this forum about saving images.
But adjusting the width and height does not scale the image smoothly.
I want to be able to scale the image down in a smooth way (as you would with say photoshop)
what's not smooth about it? do you mean you want to animate the dimension change?
By smooth I mean. The end result looks crappy. looks pixelated (as flash image scaling always has)
e.g. taking an image 1600x1200 and reducing it to a size 200px wide looks very ordinary.
Maybe I havent explained myself real well.
I want to take the bytearray of a constantly changing bitmapdata object an image and recompile a new byteArray into a resized version of the same image. e.g. thumbnail size) then I want to jpeg compress it and send the raw data via POST to php to store in a database or physical file in a secure location)
Does that make sense?
i understand what you mean. but there is no bitmap scaling available and vector scaling up will always cause pixelation but scaling down shouldn't cause pixelation.
Not as far as I have ever seen. When comparing scaling down with photoshow compares to flash vector scaling the reseult is heaps worse.
Here is a little slice of the original
A slice of it when scaled down in flash using width/height or scale modifications.
Compare this is photoshop.. its so much smoother in comparison. Look at what flash does to the image The photoshop image is so much smoother.
Take into account that all these are compressed as gif.. but you can see what I mean. I wanted to smoothly scale down the original in flash so it is nice and clean like the photoshop example.
I wanted to somehow scale down the original to a nice smooth small version to dump back into an external location. Or is there something I am missing in regards to the flash scaling? Is there a way to make the scaling result much better?
well if your going to use php and a database, and you know what images are already there...do the work in photoshop and save the thumbnails to the database and just load them in when necessary. Flash wont be able scale smoothly, so youll need to look elsewhere to do so.
the reason I want to make teh thumbnail with flash is because it is the flash application that is altering the image.
So I bring in the original image.. do lots of cool stuff to it. (e.g. colorize etc)
Then I want to save a thumbnail of that end result back out into the external.
So your suggestion is not possible (otherwise I would simply use PHP's GD library to do the scaling for me)