src/UI/Image.php
public function create( $width, $height, $trueColor = TRUE, $alpha = 0 )
	{
		$resource	= $trueColor ? imagecreatetruecolor( $width, $height ) : imagecreate( $width, $height );
		$this->type	= $trueColor ? IMAGETYPE_PNG : IMAGETYPE_GIF;
		$this->setResource( $resource, $alpha );
	}
public function create( $width, $height, $trueColor = TRUE, $alpha = 0 )
	{
		$resource	= $trueColor ? imagecreatetruecolor( $width, $height ) : imagecreate( $width, $height );
		$this->type	= $trueColor ? IMAGETYPE_PNG : IMAGETYPE_GIF;
		$this->setResource( $resource, $alpha );
	}
public function create ( $ width , $ height , $ trueColor = TRUE , $ alpha = 0 ) { $ resource = $ trueColor ? imagecreatetruecolor ( $ width , $ height ) : imagecreate ( $ width , $ height ) ; $ this -> type = $ trueColor ? IMAGETYPE_PNG : IMAGETYPE_GIF ; $ this -> setResource ( $ resource , $ alpha ) ; }
Creates a new image resource.
@access		public
@param		integer		$width		Width of image
@param		integer		$height		Height of image
@param		boolean		$trueColor	Flag: create an TrueColor Image (24-bit depth and without fixed palette)
@param		double		$alpha		Alpha channel value (0-100)
@return		void
@todo		is alpha needed ?
Creates a new image resource .