I want to create arbitrary sized pngs and jpeg images of a single block colour at a specified x,y size, however I do not want to do this by generating a raw image in memory and encoding/compressing it due to potential memory requirements.
How would this be done?