Dynamically drawing a rounded rectangle

Subscribe to Dynamically drawing a rounded rectangle 5 posts

avatar for ErlendHL ErlendHL 1312 posts
Flag Post

How would you go about dynamically drawing a rectangle with rounded corners to a bitmapdata?

 
avatar for Senekis93 Senekis93 4090 posts
Flag Post

Use the graphics class and then draw() it.

 
avatar for RTL_Shadow RTL_Shadow 1020 posts
Flag Post
Originally posted by Senekis93:

Use the graphics class and then draw() it.

It’s actually graphics.drawRoundRect(). :)

 
avatar for Senekis93 Senekis93 4090 posts
Flag Post
Originally posted by RTL_Shadow:
Originally posted by Senekis:

Use the graphics class and then draw() it.

It’s actually graphics.drawRoundRect(). :)

He wants it in a bitmapdata. He needs to draw() it. The drawRoundRect() was implied in the “Use the graphics class” part.

 
avatar for RTL_Shadow RTL_Shadow 1020 posts
Flag Post
Originally posted by Senekis93:
Originally posted by RTL_Shadow:
Originally posted by Senekis:

Use the graphics class and then draw() it.

It’s actually graphics.drawRoundRect(). :)

He wants it in a bitmapdata. He needs to draw() it. The drawRoundRect() was implied in the “Use the graphics class” part.

Ah derp. Didn’t see “to bitmapdata”. You were right haha.