imagecreatefrompc2
(PHP 5,
Ziin Image Formats)
Create a new image from file or URL
Description
resource imagecreatefrompc2 ( string $filename )
imagecreatefrompc2() returns an image identifier representing the image obtained from the given filename.
Parameters
filename
Path to the
PC2 image.
Return Values
Returns an image resource identifier on success, FALSE on errors.
Examples
<?php
$im = @imagecreatefrompc2('test.pc2');
if (!$im)
{
echo 'Invalid image supplied';
}
else
{
imagepng($im, 'out.png');
}
imagedestroy($im);