Any bitmap not displayed at its natural size will blur as pixels get
smoothed to fit into the new area.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel
Sent: Friday, August 31, 2007 6:17 AM
To: [email protected]
Subject: [flexcoders] How to use Image encoders?

 

Hello people...
I'm trying to take a snapshot of a DisplayObject and set a defined
minimized size of that snapshot, but when I mess with it's size it
becomes all blurry... Here it's how I take the snapshot:

private function takeSnapshot(comp:DisplayObject):Image {
var bd : BitmapData = getBitmapData( DisplayObject( comp ) ); 

var snap:Image = new Image();
snap.source = new Bitmap (bd);
snap.percentHeight = 20;
snap.percentWidth = 20; 
return (snap);
}

I have found a PNGEncoder in corelib, but I can't find the docs... Can
anyone tell me if using the PNGEncoder will solve the blurryness
problem? And if so, how to use it?

Thanx in advanced,
DaNooB

 

Reply via email to