Fill Paint Tool

I was wondering if it is possible to fill in a portion of an image, similar to the fill tool in MS Paint. Could I use getPixels? [import]uid: 57507 topic_id: 9675 reply_id: 309675[/import]