[Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
I want draw regular shapes with antialiased edges into a blank BitmapData object. A rectangle is simple (if it isn't rotated at all) but how would I go about drawing something like a filled circle at a specified position with a radius r? I figure I could easily draw what I want using vectors and

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Ian Thomas
Hi Adrian, I have no experience of doing this whatsoever - but - my immediate feeling is that you should go for your first idea. Create the shapes as vectors, then grab the BitmapData from. This is simply because the routines to draw the shapes are all native to the Flash Player, and they are

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
That's a good point about the speed of drawing vectors. I think I'll try it this way. Thanks for the suggestion. Adrian P On 3/20/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Adrian, I have no experience of doing this whatsoever - but - my immediate feeling is that you should go for your

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Michael Bedar
Ok, So you want to draw a circle in AS, easy enough. Then you want to draw it to a bitmap, and the AA provided by smoothing is not enough? Can you just apply a slight blur filter to the bitmap? On Mar 20, 2006, at 10:36 AM, Ian Thomas wrote: Hi Adrian, I have no experience of doing

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
Hi Michael, The AA provided by the vector drawing API is fine, I was just wondering if there might be a less convoluted method than drawing vectors and then creating BitmapData from the results. The reason it seems convoluted to me is that I'm actually extracting data from a bitmap image and