Back to Image class

Method isTransparent

public bool
isTransparent
()
Method to determine whether or not the image has transparency.
Returns
  • bool
Since
  • 2.5.0
-
  • \LogicException
Class: Image
Project: Joomla

Method isTransparent - Source code

/**
 * Method to determine whether or not the image has transparency.
 *
 * @return  boolean
 *
 * @since   2.5.0
 * @throws  \LogicException
 */
public function isTransparent()
{
    return imagecolortransparent($this->getHandle()) >= 0;
}