Hi there,
When I try to create a Starling Image from a vector Flash Sprite, with an intermediate Bitmapdata, the rendering is weird…
// creating a new instance of my Flash Sprite
var sprite:MyFlashVectorSprite = new MyFlashVectorSprite();
// converting it in Bitmapdata
var bmd:BitmapData = DisplayObjectHelper.fromDisplayObjectToBitmapData(cast(sprite));
// creating a new bitmap with this bitmapdata and adding the bitmap...
// to the root scene to check if it is nice (the result is the left image)
var bm:Bitmap = new Bitmap(bmd, null, true);
AppData.MAIN.addChild(bm);
// creating the starling image (the result is the right image)
var starlingTexture:Texture = Texture.fromBitmapData(bmd, false);
var starlingImage:Image = new Image(starlingTexture);
starlingImage.x = 500;
addChild(starlingImage);
Am I doing something wrong ?
The odd is that it is working with very simple vector shapes as a circle or a rectangle…
Thanks for your help.