# Smooth scaled external image

**URL:** <https://forum.kirupa.com/t/smooth-scaled-external-image/242206>\
**Category:** Uncategorized\
**Created:** [October 23, 2007, 4:38pm UTC](https://forum.kirupa.com/t/smooth-scaled-external-image/242206 "2007-10-23T16:38:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tluczyns](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@tluczyns](https://forum.kirupa.com/u/tluczyns)\
**Post date:** [October 23, 2007, 4:38pm UTC](https://forum.kirupa.com/t/smooth-scaled-external-image/242206/1 "2007-10-23T16:38:11Z")

</div>

The problem here is that loaded from external source and scaled image looks very bad - it doesn’t smooth.

Here is the code, please paste and look at it:

```auto

_quality = "BEST"
this.objLoadImage = {};
this.objLoadImage.onLoadInit = function(image) {
 image._xscale = image._yscale = 50;
 image._width = Math.round(image._width)
 image._height = Math.round(image._height)
 image._x = Math.round(image._x)
 image._y = Math.round(image._y) 
 image._quality = "BEST"
 image._alpha = 99;
}
this.mclLoadImage = new MovieClipLoader();
this.mclLoadImage.addListener(this.objLoadImage);
this.createEmptyMovieClip("image", 5);
this.mclLoadImage.loadClip("http://java.sun.com/docs/books/tutorial/figures/uiswing/components/TextComponentDemoMetal.png", this.image);

```

I was trying to use techniques which should help (rounding coordinates, setting \_quality to “BEST”, setting \_alpha to 99), but they don’t help.

The same image embedded in bitmap symbol in library (not loaded) and placed on Stage looks ok (we must set \_quality to “BEST” and “allow smoothing” bitmap symbol property).

Any ideas?
