Dear list,
Is there a way to rotate a Bitmap without having
quality degraded? ( or least degraded)
I load an external image and crop a part of the image
(using bitmap data) to display in a container. From
the design, the container needs to be rotated .
Whether I rotate the container or add the cropped
bitmapImage in the rotated container. The quality does
degrade dramatically .
Is there a solution for this? Any suggestion is
appreciated!
------
var _assetLoader:Loader;
loadAsset("printable.swf");
function loadAsset(src:String):void{
_assetLoader= new Loader();
_assetLoader.contentLoaderInfo.addEventListener(Event.INIT,doneLoadListener);
_assetLoader.load(new URLRequest(src));
}
function doneLoadListener(e:Event):void{
var assetW:Number=_assetLoader.content.width;
var assetH:Number=_assetLoader.content.height;
var bitmapData:BitmapData= new
BitmapData(assetW/2,assetH/2,false,0xFF0000);
var bitmapImage:Bitmap= new Bitmap(bitmapData);
bitmapData.draw(_assetLoader);
ctnMc.addChild(bitmapImage);
ctnMc.rotation=60;
}
Thanks,
Yoko
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ