| @@ 908-912 (lines=5) @@ | ||
| 905 | // PART OF IMAGE |
|
| 906 | if (@$this->m_img->m_bTrans && (ord($data{$nPxl}) == $this->m_img->m_nTrans)) { |
|
| 907 | // TRANSPARENT -> BACKGROUND |
|
| 908 | if ($bgColor == -1) { |
|
| 909 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 910 | } else { |
|
| 911 | $bmp .= chr($bgColor); |
|
| 912 | } |
|
| 913 | } else { |
|
| 914 | $bmp .= $data{$nPxl}; |
|
| 915 | } |
|
| @@ 916-923 (lines=8) @@ | ||
| 913 | } else { |
|
| 914 | $bmp .= $data{$nPxl}; |
|
| 915 | } |
|
| 916 | } else { |
|
| 917 | // BACKGROUND |
|
| 918 | if ($bgColor == -1) { |
|
| 919 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 920 | } else { |
|
| 921 | $bmp .= chr($bgColor); |
|
| 922 | } |
|
| 923 | } |
|
| 924 | } |
|
| 925 | $nPxl -= $this->m_gfh->m_nWidth << 1; |
|
| 926 | ||
| @@ 1006-1013 (lines=8) @@ | ||
| 1003 | ($y < ($this->m_img->m_gih->m_nTop + $this->m_img->m_gih->m_nHeight))) { |
|
| 1004 | // PART OF IMAGE |
|
| 1005 | $bmp .= $data{$nPxl}; |
|
| 1006 | } else { |
|
| 1007 | // BACKGROUND |
|
| 1008 | if ($bgColor == -1) { |
|
| 1009 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 1010 | } else { |
|
| 1011 | $bmp .= chr($bgColor); |
|
| 1012 | } |
|
| 1013 | } |
|
| 1014 | } |
|
| 1015 | } |
|
| 1016 | $bmp = gzcompress($bmp, 9); |
|