I do not quite understand what you are asking. "Fill the frame" can be easily done using mask . Most graphics platforms support this, on the server (gd, image magic) or on the client (flash, html canvas).
If you ask how to programmatically create one of these , it will be a little more complicated;)
source
share