@@ 1044-1059 (lines=16) @@ | ||
1041 | } |
|
1042 | ||
1043 | // PREPARE COLOR TABLE (RGBQUADs) |
|
1044 | if ($this->m_img->m_gih->m_bLocalClr) { |
|
1045 | $nColors = $this->m_img->m_gih->m_nTableSize; |
|
1046 | $rgbq = $this->m_img->m_gih->m_colorTable->toRGBQuad(); |
|
1047 | if ($bgColor != -1) { |
|
1048 | $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
|
1049 | } |
|
1050 | } elseif ($this->m_gfh->m_bGlobalClr) { |
|
1051 | $nColors = $this->m_gfh->m_nTableSize; |
|
1052 | $rgbq = $this->m_gfh->m_colorTable->toRGBQuad(); |
|
1053 | if ($bgColor != -1) { |
|
1054 | $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
|
1055 | } |
|
1056 | } else { |
|
1057 | $nColors = 0; |
|
1058 | $bgColor = -1; |
|
1059 | } |
|
1060 | ||
1061 | // PREPARE BITMAP BITS |
|
1062 | $data = $this->m_img->m_data; |
|
@@ 1147-1162 (lines=16) @@ | ||
1144 | } |
|
1145 | ||
1146 | // PREPARE COLOR TABLE (RGBQUADs) |
|
1147 | if ($this->m_img->m_gih->m_bLocalClr) { |
|
1148 | $nColors = $this->m_img->m_gih->m_nTableSize; |
|
1149 | $pal = $this->m_img->m_gih->m_colorTable->toString(); |
|
1150 | if ($bgColor != -1) { |
|
1151 | $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
|
1152 | } |
|
1153 | } elseif ($this->m_gfh->m_bGlobalClr) { |
|
1154 | $nColors = $this->m_gfh->m_nTableSize; |
|
1155 | $pal = $this->m_gfh->m_colorTable->toString(); |
|
1156 | if ($bgColor != -1) { |
|
1157 | $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
|
1158 | } |
|
1159 | } else { |
|
1160 | $nColors = 0; |
|
1161 | $bgColor = -1; |
|
1162 | } |
|
1163 | ||
1164 | // PREPARE BITMAP BITS |
|
1165 | $data = $this->m_img->m_data; |