PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<imagepalettecopyimagepolygon>
Last updated: Mon, 16 Jul 2012

imagepng

(PHP 3 >= 3.0.13, PHP 4, PHP 5)

imagepng -- 以 PNG 格式将图像输出到浏览器或文件

说明

int imagepng ( resource image [, string filename] )

imagepng() 将 GD 图像流(image)以 PNG 格式输出到标准输出(通常为浏览器),或者如果用 filename 给出了文件名则将其输出到该文件。

<?php
$im
= imagecreatefrompng ("test.png");
imagepng ($im);
?>

参见 imagegif()imagewbmp()imagejpeg()imagetypes()




<imagepalettecopyimagepolygon>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST