imagepng

imagepng

(PHP 4, PHP 5, PHP 7)

imagepngOutput a PNG image to either the browser or a file

Description

bool imagepng ( resource $image [, mixed $to [, int $quality [, int $filters ]]] )

Outputs or saves a PNG image from the given image.

Parameters

image

An image resource, returned by one of the image creation functions, such as 登录查看完整内容