# Erasing parts of a Bitmap?

**URL:** <https://forum.kirupa.com/t/erasing-parts-of-a-bitmap/284567>\
**Category:** flash\
**Created:** [March 20, 2009, 10:54am UTC](https://forum.kirupa.com/t/erasing-parts-of-a-bitmap/284567 "2009-03-20T10:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnsjohansson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jnsjohansson](https://forum.kirupa.com/u/jnsjohansson)\
**Post date:** [March 20, 2009, 10:54am UTC](https://forum.kirupa.com/t/erasing-parts-of-a-bitmap/284567/1 "2009-03-20T10:54:26Z")

</div>

Hi!

I’m in need, again, of some assistance. I’m making a game with 2 pictures. and the concept is built on that you erase part of the top-bitmap to see the bitmap under.

How can I accomplish this?

I tried to wrap my head around the bitmaps and the draw and the FillRect but can’t get it to work completely.

Basically I want 2 bitmaps, and a cursor which erases parts of the top one to show the one underneath.
