| @@ 1076-1080 (lines=5) @@ | ||
| 1073 | // PART OF IMAGE |
|
| 1074 | if (@$this->m_img->m_bTrans && (ord($data{$nPxl}) == $this->m_img->m_nTrans)) { |
|
| 1075 | // TRANSPARENT -> BACKGROUND |
|
| 1076 | if ($bgColor == -1) { |
|
| 1077 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 1078 | } else { |
|
| 1079 | $bmp .= chr($bgColor); |
|
| 1080 | } |
|
| 1081 | } else { |
|
| 1082 | $bmp .= $data{$nPxl}; |
|
| 1083 | } |
|
| @@ 1084-1091 (lines=8) @@ | ||
| 1081 | } else { |
|
| 1082 | $bmp .= $data{$nPxl}; |
|
| 1083 | } |
|
| 1084 | } else { |
|
| 1085 | // BACKGROUND |
|
| 1086 | if ($bgColor == -1) { |
|
| 1087 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 1088 | } else { |
|
| 1089 | $bmp .= chr($bgColor); |
|
| 1090 | } |
|
| 1091 | } |
|
| 1092 | } |
|
| 1093 | $nPxl -= $this->m_gfh->m_nWidth << 1; |
|
| 1094 | ||
| @@ 1178-1185 (lines=8) @@ | ||
| 1175 | ) { |
|
| 1176 | // PART OF IMAGE |
|
| 1177 | $bmp .= $data{$nPxl}; |
|
| 1178 | } else { |
|
| 1179 | // BACKGROUND |
|
| 1180 | if ($bgColor == -1) { |
|
| 1181 | $bmp .= chr($this->m_gfh->m_nBgColor); |
|
| 1182 | } else { |
|
| 1183 | $bmp .= chr($bgColor); |
|
| 1184 | } |
|
| 1185 | } |
|
| 1186 | } |
|
| 1187 | } |
|
| 1188 | $bmp = gzcompress($bmp, 9); |
|