fatfree
fatfree copied to clipboard
Image creation etc
Probably i overlooked something, but i couldn't find any way to create an empty image (with a particular background color). I tried using the \Image constructor without an argument and resizing it to fit my needs but that throws errors. I wanted to use overlay() to put an image on a bigger image. I resolved it by loading in a blank png which seems a bit hacky.
Compared to the more advanced functions in f3, maybe the following basic functions are useful?
- \Image::createBlank($width, $height, $bgColor)
- fill($backgroundColor)
- resizeCanvas($w, $h) // make canvas bigger without resizing