| @@ 1689-1693 (lines=5) @@ | ||
| 1686 | imagefilledrectangle($newIm, 0, 0, $cords[2], $cords[3], $Bcolor); |
|
| 1687 | $newConf = []; |
|
| 1688 | $workArea = [0, 0, $cords[2], $cords[3]]; |
|
| 1689 | if ($cords[0] < 0) { |
|
| 1690 | $workArea[0] = abs($cords[0]); |
|
| 1691 | } else { |
|
| 1692 | $newConf['offset'] = -$cords[0]; |
|
| 1693 | } |
|
| 1694 | if ($cords[1] < 0) { |
|
| 1695 | $workArea[1] = abs($cords[1]); |
|
| 1696 | } else { |
|
| @@ 1694-1698 (lines=5) @@ | ||
| 1691 | } else { |
|
| 1692 | $newConf['offset'] = -$cords[0]; |
|
| 1693 | } |
|
| 1694 | if ($cords[1] < 0) { |
|
| 1695 | $workArea[1] = abs($cords[1]); |
|
| 1696 | } else { |
|
| 1697 | $newConf['offset'] .= ',' . -$cords[1]; |
|
| 1698 | } |
|
| 1699 | $this->copyGifOntoGif($newIm, $im, $newConf, $workArea); |
|
| 1700 | $im = $newIm; |
|
| 1701 | $this->w = imagesx($im); |
|