| @@ 422-428 (lines=7) @@ | ||
| 419 | $this->img_temp = imagecreatetruecolor( $w, $h ); |
|
| 420 | ||
| 421 | // vertical |
|
| 422 | if ( 'v' == $tipo ) |
|
| 423 | { |
|
| 424 | for ( $y = 0; $y < $h; $y++ ) |
|
| 425 | { |
|
| 426 | imagecopy( $this->img_temp, $this->img, 0, $y, 0, $h - $y - 1, $w, 1 ); |
|
| 427 | } |
|
| 428 | } |
|
| 429 | ||
| 430 | // horizontal |
|
| 431 | if ( 'h' == $tipo ) |
|
| @@ 431-437 (lines=7) @@ | ||
| 428 | } |
|
| 429 | ||
| 430 | // horizontal |
|
| 431 | if ( 'h' == $tipo ) |
|
| 432 | { |
|
| 433 | for ( $x = 0; $x < $w; $x++ ) |
|
| 434 | { |
|
| 435 | imagecopy( $this->img_temp, $this->img, $x, 0, $w - $x - 1, 0, 1, $h ); |
|
| 436 | } |
|
| 437 | } |
|
| 438 | ||
| 439 | $this->img = $this->img_temp; |
|
| 440 | ||