I have created a subclass of `Shape` that contains paired `GraphicsPath` and `GraphicsStroke` objects. The class has a public method for retrieving the shape as a bitmap for passage to a Pixelbender kernel - the method is as follows:

```
public function GetBitmap():Bitmap{
    var bmpData:BitmapData = new BitmapData(this.width, this.height, true, 0x00FFFFFF);
    bmpData.draw(this);
    return new Bitmap(bmpData);
}

```

To test these, I have the following code:

```
var v:Vector.<Number> = new <Number>[10,10,50,10,50,50]; //defines GraphicsPath.data to be used
var wave:CustomWave = new CustomWave(v,0xff0000); //constructor for the subclass
wave.Refresh(); //clears the Shape and redraws the GraphicsPath 

//adds as shape
addChild(wave);

//adds as bitmap
var bmp:Bitmap = wave.GetBitmap()
addChild(bmp);

```

The visual output from both:

![Shape vs Bitmap output](https://i.stack.imgur.com/OSLPX.png)

Any idea what could be causing the difference?