Go Back   kirupaForum > Flash > ActionScript 1.0/2.0

Reply
 
Thread Tools Display Modes
Old 11-19-2009, 06:07 PM   #1
Javaprogrammer
Registered User
width and height of image.

Hi,

I'm loading some images from a web service and use a MovieClipLoader to load the image. In the onLoadInit() I set the new width and height of the image. ( This must be done after the image is completely loaded )

My problem is that the image has poor qualtity. The quality around the edges isn't as the original image. Is there a way to improve the image to just scale as movieclip._width and movieclip._height isn't the best way to go.
Javaprogrammer is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-20-2009, 08:43 AM   #2
Anonymouse
Registered User
There are only a few things that I can think of that could be the matter, and I'll try to help as best I can, in order of what I think is most likely to least likely:

(a) Your images are pixel-based, whereas Flash uses vectors to draw its art.
Pixel-based images store your information as a series of dots, pixels, so if you zoom in enough you will start to see these individual pixels rather than the image itself, like a Pontillist painting.
Vector-based images store your information in mathematical form, so if you zoom in, the information is available to the program so it can redraw the shape in the same quality as the original, unzoomed, image.

When you use ._width and ._height, you're resizing the Flash Vector-based movieclip - but that drags the pixels of the picture inside the movieclip out of whack.
If this is the case there's not much you can do, other than keep the resizing to an absolute minimum.
Some paid-for programs change pixel images into vector images, but using those in this case would seem to be impossible.

(b) You're resizing height out of proportion to width, or vice-versa, making the image look "stretched" and un-natural. If this is the case, resize your mc strictly in proportion to the original. This isn't a quality problem, strictly, of course, and it doesn't really match your description...this would (I *think*) affect all of the picture, not just the edges.
Maybe the locations of your images inside the mc are off? That might affect how scaling warps the picture...try setting different locations, I suppose.

(c) The way you're scaling them up with ._width and ._height really is playing havoc with the quality. Try messing around with ._xscale and ._yscale instead is all I can think of...
Anonymouse is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:18 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com