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 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 therefore going to be a _lot_ faster than anything you can
> come up with in ActionScript.
>
> HTH,
>   Ian
>
> On 3/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
> > 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 then create a
> > BitmapData instance from this but this seems a little convoluted and
> > inefficient to me. I've also thought about writing some code to work out
> > which pixels are completely encompassed within the circle and giving
> these
> > solid colour and then manually calculating the amount to tint pixels at
> the
> > edge of the circle to create the antialiasing but the routines I have in
> my
> > head would be even more inefficient than the vector method.
> >
> > Anybody done this, know of any examples/code or have any bright ideas?
> >
> > Thanks, Adrian P
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to