|
@@ 876-891 (lines=16) @@
|
| 873 |
|
} |
| 874 |
|
|
| 875 |
|
// PREPARE COLOR TABLE (RGBQUADs) |
| 876 |
|
if ($this->m_img->m_gih->m_bLocalClr) { |
| 877 |
|
$nColors = $this->m_img->m_gih->m_nTableSize; |
| 878 |
|
$rgbq = $this->m_img->m_gih->m_colorTable->toRGBQuad(); |
| 879 |
|
if ($bgColor != -1) { |
| 880 |
|
$bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
| 881 |
|
} |
| 882 |
|
} elseif ($this->m_gfh->m_bGlobalClr) { |
| 883 |
|
$nColors = $this->m_gfh->m_nTableSize; |
| 884 |
|
$rgbq = $this->m_gfh->m_colorTable->toRGBQuad(); |
| 885 |
|
if ($bgColor != -1) { |
| 886 |
|
$bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
| 887 |
|
} |
| 888 |
|
} else { |
| 889 |
|
$nColors = 0; |
| 890 |
|
$bgColor = -1; |
| 891 |
|
} |
| 892 |
|
|
| 893 |
|
// PREPARE BITMAP BITS |
| 894 |
|
$data = $this->m_img->m_data; |
|
@@ 975-990 (lines=16) @@
|
| 972 |
|
} |
| 973 |
|
|
| 974 |
|
// PREPARE COLOR TABLE (RGBQUADs) |
| 975 |
|
if ($this->m_img->m_gih->m_bLocalClr) { |
| 976 |
|
$nColors = $this->m_img->m_gih->m_nTableSize; |
| 977 |
|
$pal = $this->m_img->m_gih->m_colorTable->toString(); |
| 978 |
|
if ($bgColor != -1) { |
| 979 |
|
$bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
| 980 |
|
} |
| 981 |
|
} elseif ($this->m_gfh->m_bGlobalClr) { |
| 982 |
|
$nColors = $this->m_gfh->m_nTableSize; |
| 983 |
|
$pal = $this->m_gfh->m_colorTable->toString(); |
| 984 |
|
if ($bgColor != -1) { |
| 985 |
|
$bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
| 986 |
|
} |
| 987 |
|
} else { |
| 988 |
|
$nColors = 0; |
| 989 |
|
$bgColor = -1; |
| 990 |
|
} |
| 991 |
|
|
| 992 |
|
// PREPARE BITMAP BITS |
| 993 |
|
$data = $this->m_img->m_data; |