public function draw(Dm_Image $image,$x=0,$y=0,$width=null,$height=null)
	{
		$srcImageResource = $image->getImageResource();
		if (is_null($width))  $width = $image->getWidth();
		if (is_null($height)) $height = $image->getHeight();
		return imagecopy(
			$this->getImageResource(),
			$srcImageResource,
			$x,
			$y,
			0,
			0,
			$width,
			$height
		);
	}
public function draw(Dm_Image $image,$x=0,$y=0,$width=null,$height=null)
	{
		$srcImageResource = $image->getImageResource();
		if (is_null($width))  $width = $image->getWidth();
		if (is_null($height)) $height = $image->getHeight();
		return imagecopy(
			$this->getImageResource(),
			$srcImageResource,
			$x,
			$y,
			0,
			0,
			$width,
			$height
		);
	}
public function draw ( Dm_Image $ image , $ x = 0 , $ y = 0 , $ width = null , $ height = null ) { $ srcImageResource = $ image -> getImageResource ( ) ; if ( is_null ( $ width ) ) $ width = $ image -> getWidth ( ) ; if ( is_null ( $ height ) ) $ height = $ image -> getHeight ( ) ; return imagecopy ( $ this -> getImageResource ( ) , $ srcImageResource , $ x , $ y , 0 , 0 , $ width , $ height ) ; }
Copy and merge part of an image
@param DmImage
@param int x-coordinate of source point.
@param int y-coordinate of source point.
@param int Source width.
@param int Source height.
@return bool Returns TRUE on success or FALSE on failure.
Copy and merge part of an image