Draknek/FlashPunk — Issue #48: Allow Image to accept an Image as an image source
Author: BlackBulletIV
Created: 2011-10-10 02:24:58+00:00
State: open

A pointless example:

``` actionscript3
var img:Image = new Image(SOURCE, new Rectangle(0, 0, 5, 5));
graphic = new Image(img);
```

The reason I really want this is so I can use an `Image` object with a `Spritemap`, to clip the source image, for example:

``` actionscript3
var img:Image = new Image(SOURCE, new Rectangle(5, 5, 10, 10));
graphic = new Spritemap(img, 10, 10);
```

This could be done by grabbing the source buffer if the source image is an `Image` object.

Another way would be making the source buffer on an `Image` object public; that would be cool.