PHP » GoLang |
login |
register |
about
|
imagecreate(PHP 4, PHP 5, PHP 7) imagecreate — Create a new palette based image Description
resource imagecreate
( int
$width
, int $height
)imagecreate() returns an image identifier representing a blank image of specified size. In general, we recommend the use of imagecreatetruecolor() instead of imagecreate() so that image processing occurs on the highest quality image possible. If you want to output a palette image, then imagetruecolortopalette() should be called immediately before saving the image with imagepng() or imagegif(). Parameters
Return ValuesReturns an image resource identifier on success, Examples
Example #1 Creating a new GD image stream and outputting an image.
<?php The above example will output something similar to: |
more
Recently updated
more
Most requested
more
Last requests
|