# How can apply graphics using LineTo?

**URL:** <https://forum.kirupa.com/t/how-can-apply-graphics-using-lineto/308406>\
**Category:** flash\
**Created:** [April 22, 2010, 11:19am UTC](https://forum.kirupa.com/t/how-can-apply-graphics-using-lineto/308406 "2010-04-22T11:19:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![palanivelrajan](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Post date:** [April 22, 2010, 11:19am UTC](https://forum.kirupa.com/t/how-can-apply-graphics-using-lineto/308406/1 "2010-04-22T11:19:36Z")

</div>

here I added some source code, but it is not loading the imge

```
       graphics.beginBitmapFill(image);
  graphics.moveTo(100, 100);
  graphics.lineTo(120, 50);
  graphics.lineTo(200, 50);
  graphics.lineTo(220, 100);
  graphics.lineTo(100, 100);    
 
        graphics.endFill();

```

Please fix the problem for me (please avoid using rect, I need only lineTo)
