Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
imagecolortransparent() function in PHP
The imagecolortransparent() function is used to set the color of a transparent image.
Syntax
imagecolortransparent ( img, color )
Parameters
img: Create image with imagecreatetruecolor() function.
color: Color identifier created with imagecolorallocate().
Return
The imagecolortransparent() function returns the identifier of the new transparent color. The return value is -1 if color is not specified and the image has no transparent color.
Example
The following is an example
Output
The following is the output:

Advertisements
