# Draw a bitmap line or a bitmap polygon

**URL:** https://forum.kirupa.com/t/draw-a-bitmap-line-or-a-bitmap-polygon/241772
**Category:** Uncategorized
**Created:** [October 17, 2007, 9:47pm UTC](https://forum.kirupa.com/t/draw-a-bitmap-line-or-a-bitmap-polygon/241772 "2007-10-17T21:47:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Maggie\_Ruan](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@Maggie\_Ruan](https://forum.kirupa.com/u/Maggie_Ruan)
#### Post date: [October 17, 2007, 9:47pm UTC](https://forum.kirupa.com/t/draw-a-bitmap-line-or-a-bitmap-polygon/241772/1 "2007-10-17T21:47:34Z")

</div>

[COLOR=black]I need to create a flash/flex/ActionScript3 program that allows user to draw lines and polygons with legends. The legends are provided as bitmap. I’m thinking that I have to use bitmapfill to do the work. Is this the best approach?[/COLOR]

[COLOR=black]As the line may change the direction, I will need the bitmapfill to change direction following the direction of the line. What is the best way to do this? Any example out there?[/COLOR]

[COLOR=black]For polygons, can we use bitmapfill to fill irregular shapes?[/COLOR]

Thanks,  
-Maggie
