fatfree icon indicating copy to clipboard operation
fatfree copied to clipboard

Image creation etc

Open jdv145 opened this issue 8 years ago • 0 comments

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

jdv145 avatar Aug 02 '17 08:08 jdv145