# Doesnt Scale9Grid work with bitmap?

**URL:** <https://forum.kirupa.com/t/doesnt-scale9grid-work-with-bitmap/234319>\
**Category:** flash\
**Created:** [August 1, 2007, 11:44am UTC](https://forum.kirupa.com/t/doesnt-scale9grid-work-with-bitmap/234319 "2007-08-01T11:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ven](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@ven](https://forum.kirupa.com/u/ven)\
**Post date:** [August 1, 2007, 11:44am UTC](https://forum.kirupa.com/t/doesnt-scale9grid-work-with-bitmap/234319/1 "2007-08-01T11:44:00Z")

</div>

I have uploaded a test \*\*[here](http://fuglefjellet.no/concepts/scale9/)

\*\*

```auto
a2.width = 300;
a2.height = 300;
b2.width = 300;
b2.height = 300;

```

Both clips in library have scale9grid enabled, but it just wont apply to the imported bitmap, just vector.

If there is no way around it, I cant imagine it is too hard to write a custom class that applies scale9grid to the bitmap aswell, maybe someone know if it has been made already?

trace(a1.scale9Grid); and chop the bitmapdata manually?
