Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }