So I have a BitmapData object that’s 400x400, and is mostly transparent with a small area (up to 50x50) of color somewhere inside. That’s drawn to a bitmap, and now I somehow need to generate a Sprite that is only the dimensions of the small colored area, and sits in the same place on the screen.
The size and position of the colored area is variable, and the operation to create the new Sprite must be near-instantaneous, so no lengthy pixel comparison exercises.
Sorry for the crap description, but does anyone have any idea of how to go about this?