Larry, you can have a circular sprite and draw the sprite into the bitmap data. the following is a sample that draws a circular sprite into a bitmapdata.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> <![CDATA[ private var _sprite: Sprite; private function init(): void { _sprite = new Sprite(); _sprite.graphics.clear(); _sprite.graphics.beginFill(0x0000ff, 1); _sprite.graphics.drawCircle(150, 150, 80); _sprite.graphics.endFill(); var bd: BitmapData = new BitmapData(300, 300); bd.draw(_sprite); myImage.source = new Bitmap(bd); } ]]> </mx:Script> <mx:Image id="myImage" width="300" height="300" /> </mx:Application> HTH. - venkat http://www.venkatj.com --- In [email protected], "Larry Zhang" <[EMAIL PROTECTED]> wrote: > > Hello all > > I'm now learning some draw action in bitmapdata. I found that I > can draw some rectangle area to a bitmapdata. But if the area I want to set > to bitmap is circle or some other shape, how can I do such things? > > And something more about circle area. If I want to set some > matrix, such as colorMatrix or transformMatrix, to some circle area, how can > I do it. > > > > Thanks. > > > > > > ============================== > > Make Every Day Count > > > > Larry Zhang >

