Unix and Linux Discussions Tagged with image |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
1,096 |
Software Releases - RSS News |
|
|
|
0 |
1,009 |
Software Releases - RSS News |
|
|
|
0 |
618 |
Software Releases - RSS News |
|
|
|
0 |
503 |
Software Releases - RSS News |
|
|
|
7 |
46,126 |
AIX |
|
|
|
0 |
1,190 |
Software Releases - RSS News |
|
|
|
0 |
742 |
Software Releases - RSS News |
|
|
|
0 |
535 |
Software Releases - RSS News |
|
|
|
0 |
892 |
Software Releases - RSS News |
|
|
|
0 |
653 |
Software Releases - RSS News |
|
|
|
0 |
488 |
Software Releases - RSS News |
|
|
|
0 |
1,191 |
Software Releases - RSS News |
|
|
|
0 |
751 |
Software Releases - RSS News |
|
|
|
0 |
800 |
Software Releases - RSS News |
|
|
|
0 |
629 |
Software Releases - RSS News |
|
|
|
0 |
732 |
Software Releases - RSS News |
|
|
|
0 |
828 |
Software Releases - RSS News |
|
|
|
3 |
4,900 |
Solaris |
|
|
|
0 |
788 |
Software Releases - RSS News |
|
|
|
0 |
703 |
Software Releases - RSS News |
|
|
|
0 |
760 |
Software Releases - RSS News |
|
|
|
0 |
583 |
Software Releases - RSS News |
|
|
|
0 |
2,161 |
UNIX and Linux RSS News |
|
|
|
4 |
3,724 |
Solaris |
|
|
|
0 |
1,486 |
Software Releases - RSS News |
|
|
|
1 |
2,373 |
UNIX and Linux Applications |
|
|
|
0 |
658 |
Software Releases - RSS News |
|
|
|
0 |
1,047 |
UNIX and Linux RSS News |
|
|
|
0 |
668 |
Software Releases - RSS News |
|
|
|
0 |
2,237 |
Solaris |
|
|
|
0 |
806 |
Software Releases - RSS News |
|
|
|
0 |
1,101 |
Software Releases - RSS News |
|
|
|
0 |
692 |
Software Releases - RSS News |
|
|
|
0 |
1,191 |
Software Releases - RSS News |
|
|
|
0 |
1,551 |
Programming |
|
|
|
0 |
746 |
Software Releases - RSS News |
|
|
|
0 |
616 |
Software Releases - RSS News |
|
|
|
3 |
3,224 |
Solaris |
|
|
|
0 |
798 |
Software Releases - RSS News |
|
|
|
0 |
1,473 |
UNIX and Linux RSS News |
IMAGEISTRUECOLOR(3) 1 IMAGEISTRUECOLOR(3)
imageistruecolor - Finds whether an image is a truecolor image
SYNOPSIS
bool imageistruecolor (resource $image)
DESCRIPTION
imageistruecolor(3) finds whether the image $image is a truecolor image.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
RETURN VALUES
Returns TRUE if the $image is truecolor, FALSE otherwise.
EXAMPLES
Example #1
Simple detection of true color image instances using imageistruecolor(3)
<?php
// $im is an image instance
// Check if image is a true color image or not
if(!imageistruecolor($im))
{
// Create a new true color image instance
$tc = imagecreatetruecolor(imagesx($im), imagesy($im));
// Copy over the pixels
imagecopy($tc, $im, 0, 0, 0, 0, imagesx($im), imagesy($im));
imagedestroy($im);
$im = $tc;
$tc = NULL;
// OR use imagepalettetotruecolor()
}
// Continue working with image instance
?>
NOTES
Note
This function requires GD 2.0.1 or later (2.0.28 or later is recommended).
SEE ALSO
imagecreatetruecolor(3), imagepalettetotruecolor(3).
PHP Documentation Group IMAGEISTRUECOLOR(3)