public function setImageType($type)
	{
		if ($type)
		{
			$this->image_type = $type;
		}

		if ($this->image_type == IMAGETYPE_PNG && $this->resource)
		{
			imagealphablending($this->resource, false);
			imagesavealpha($this->resource, true);
		}
	}
public function setImageType($type)
	{
		if ($type)
		{
			$this->image_type = $type;
		}

		if ($this->image_type == IMAGETYPE_PNG && $this->resource)
		{
			imagealphablending($this->resource, false);
			imagesavealpha($this->resource, true);
		}
	}
public function setImageType ( $ type ) { if ( $ type ) { $ this -> image_type = $ type ; } if ( $ this -> image_type == IMAGETYPE_PNG && $ this -> resource ) { imagealphablending ( $ this -> resource , false ) ; imagesavealpha ( $ this -> resource , true ) ; } }
Set the image type

@param   string  $type  Image type to set
@return  void
Set the image type