# Mirroring BitmapData

**URL:** <https://forum.kirupa.com/t/mirroring-bitmapdata/276811>\
**Category:** flash\
**Created:** [December 3, 2008, 9:15pm UTC](https://forum.kirupa.com/t/mirroring-bitmapdata/276811 "2008-12-03T21:15:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iamthejuggler](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Iamthejuggler](https://forum.kirupa.com/u/Iamthejuggler)\
**Post date:** [December 3, 2008, 9:15pm UTC](https://forum.kirupa.com/t/mirroring-bitmapdata/276811/1 "2008-12-03T21:15:04Z")

</div>

In an effort to cut down on the filesize of my swf i have only created a tilesheet of my character facing right, with the intention of programmatically mirroring this for the left facing tiles.

I’ve been looking for a way to do this, but so far all i can find is applying a TransformMatrix on the Bitmap. Unfortunately (I am assuming) I need to mirror the actual BitmapData, not the Bitmap, otherwise my CopyPixels will just use the original bitmapData. I know i can do it by literally creating a new BitmapData and then copying the pixels into their new correct place 1 by 1, but this seems like a pretty bad solution.

Anyone got any ideas?
