0

The UILoader size is 200x200 pixels. but when I load large images to this small square (image sizes like 600x600 pixels), it looks like it isn't smooth. I've tried:

theUILoader.source = "a.png";
Bitmap(theUILoader.content).smoothing = true;

but it doesn't work.

Milad
  • 1,239
  • 3
  • 19
  • 37

1 Answers1

1

I have never used UILoader but I assume that if you pass a string as source, the image needs to be loaded. Therefore you cannot just put Bitmap(theUILoader.content).smoothing = true - the image is not loaded. Try to put a listener on it, Event.COMPLETE. Then in the handler put the very same smoothing code.

Fygo
  • 4,555
  • 6
  • 33
  • 47