The quality of the vector graphics are determined by the stage quality<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageQuality.html>. For BitmapData in Flash Player 11.3 on you can use drawWithQuality and set it to 16x16 pixel grid. Unfortunately, I don't think you can get higher than 4x4 pixel grid for the Flash Player stage. I've seen the difference in the output of the draw vs drawWithQuality command and it's amazing. It would be great if they added higher quality settings to the Flash Player output.
In the meantime you can try to get a similar result using a BitmapImage. It accepts .fxg file or FXG definition as a source. Then you could enable smoothing on that. I'm not sure if it will be high quality though since it doesn't use drawWithQuality() but rather the draw() method in the original code as of SDK 4.6. It may have been added later if it hasn't it would be a good feature request. For FXG, there are some other things you can do to improve the quality like using a second rounded rectangle behind the first if the border is 1px. More info here<http://www.adobe.com/devnet/flex/articles/mobile-skinning-part1.html>. I think someone made an AS3 class that rasterizes the vector graphics at higher res at runtime and then resizes that down to the size you need. I think it uses Stage3D or Starling. On Sat, Nov 2, 2013 at 6:08 AM, Tintin <[email protected]>wrote: > Hello > > I have created some artwork in Adobe Illustrator, saved that as a .fxg file > and brought this into a Flash Builder project I am developing. Everything > has imported just fine, but is there any way to smooth the artwork. I can't > see any antialiasing/smoothing properties. It looks quite good but is a > little 'crisp' in places. > > Thanks > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Smoothing-FXG-Artwork-tp3481.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >
