YouTip LogoYouTip

Php Imagecolortransparent

# PHP imagecolortransparent - Define a Color as Transparent [![Image 3: PHP Image Processing](#)PHP Image Processing](#) imagecolortransparent β€” Define a color as transparent. ### Syntax int imagecolortransparent ( resource $image [, int $color ] ) imagecolortransparent() sets the transparent color of the image to color. image is the image identifier returned by [imagecreatetruecolor()](#), and color is the color identifier returned by [imagecolorallocate()](#). **Note:** Transparency is an attribute of the image, not of the color. Once a color is set as transparent, any area in the image previously drawn with that color becomes transparent. Returns the identifier of the new transparent color, or the identifier of the current transparent color if color is omitted. **Note:** Transparency can only be copied via [imagecopymerge()](#) and truecolor image copies, not via [imagecopy()](#) or palette-based image copies. [![Image 4: PHP Image Processing](#)PHP Image Processing](#)
← Ionic Header FooterAngularjs Api β†’