# Bitmap & Bitmapdata

**URL:** <https://forum.kirupa.com/t/bitmap-bitmapdata/274031>\
**Category:** flash\
**Created:** [October 23, 2008, 11:00pm UTC](https://forum.kirupa.com/t/bitmap-bitmapdata/274031 "2008-10-23T23:00:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noisebug](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@noisebug](https://forum.kirupa.com/u/noisebug)\
**Post date:** [October 23, 2008, 11:00pm UTC](https://forum.kirupa.com/t/bitmap-bitmapdata/274031/1 "2008-10-23T23:00:41Z")

</div>

First off, great forum. Glad to have become a member.

–  
I’m switching a project from Flash CS3 to FlashDevelop. I don’t need to be using timeline elements, and FlashDevelop runs much faster for me.

Everything is going good except one issue. I am writing a game that requires copypixels to blit sprites.

Traditionally, I would:  
-add PNG to library  
-link said PNG  
-create new instance of PNG through code as BitmapData

Currently, the only way to embed images is to use the  
[embed(source…] method. However, when I declare an instance of this class I get it as a Bitmap, NOT bitmapdata.

I don’t know how to convert a bitmap to bitmap data so I can use my copypixels method.

Any ideas? Thanks in advance.
