public function copy(GDImage $Image, $iX1, $iX2, $iY1 = 0, $iY2 = 0, $iWidth = null, $iHeight = null) { if ($iWidth == null) { $iWidth = $Image->getWidth(); } if ($iHeight == null) { $iHeight = $Image->getHeight(); } return imagecopy($this->rImage, $Image->getHandle(), $iX1, $iX2, $iY1, $iY2, $iWidth, $iHeight); }
public function copyResampled(GDImage $Image, $iX1, $iX2, $iY1, $iY2, $iDstWidth, $iDstHeight, $iWidth, $iHeight) { return imagecopyresampled($this->rImage, $Image->getHandle(), $iX1, $iX2, $iY1, $iY2, $iDstWidth, $iDstHeight, $iWidth, $iHeight); }