| @@ 157-162 (lines=6) @@ | ||
| 154 | ||
| 155 | //read pixels |
|
| 156 | if ($reverse) { |
|
| 157 | for ($y = 0; $y < $header['height']; $y++) { |
|
| 158 | for ($x = 0; $x < $header['width']; $x++) { |
|
| 159 | imagesetpixel($im, $x, $y, self::dwordize($pixels[$i])); |
|
| 160 | $i++; |
|
| 161 | } |
|
| 162 | } |
|
| 163 | } else { |
|
| 164 | for ($y = $header['height']-1; $y >= 0; $y--) { |
|
| 165 | for ($x=0; $x<$header['width']; $x++) { |
|
| @@ 164-169 (lines=6) @@ | ||
| 161 | } |
|
| 162 | } |
|
| 163 | } else { |
|
| 164 | for ($y = $header['height']-1; $y >= 0; $y--) { |
|
| 165 | for ($x=0; $x<$header['width']; $x++) { |
|
| 166 | imagesetpixel($im, $x, $y, self::dwordize($pixels[$i])); |
|
| 167 | $i++; |
|
| 168 | } |
|
| 169 | } |
|
| 170 | } |
|
| 171 | ||
| 172 | return $im; |
|