backup — backups current image state
Description
public Intervention\Image\Image backup()
Backups current image state as fallback for reset method. Overwrites older states on every call.
Parameters
none
Return Values
Instance of Intervention\Image\Image
Examples
// create empty canvas with black background
$img = Image::canvas(120, 90, '#000000');
// fill image with color
$img->fill('#b53717');
// backup image with colored background
$img->backup();
// fill image with tiled image
$img->fill('tile.png');
// return to colored background
$img->reset();
See also
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .