@@ 849-866 (lines=18) @@ | ||
846 | } |
|
847 | ||
848 | // PREPARE COLOR TABLE (RGBQUADs) |
|
849 | if($this->m_img->m_gih->m_bLocalClr) { |
|
850 | $nColors = $this->m_img->m_gih->m_nTableSize; |
|
851 | $rgbq = $this->m_img->m_gih->m_colorTable->toRGBQuad(); |
|
852 | if($bgColor != -1) { |
|
853 | $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
|
854 | } |
|
855 | } |
|
856 | else if($this->m_gfh->m_bGlobalClr) { |
|
857 | $nColors = $this->m_gfh->m_nTableSize; |
|
858 | $rgbq = $this->m_gfh->m_colorTable->toRGBQuad(); |
|
859 | if($bgColor != -1) { |
|
860 | $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
|
861 | } |
|
862 | } |
|
863 | else { |
|
864 | $nColors = 0; |
|
865 | $bgColor = -1; |
|
866 | } |
|
867 | ||
868 | // PREPARE BITMAP BITS |
|
869 | $data = $this->m_img->m_data; |
|
@@ 954-971 (lines=18) @@ | ||
951 | } |
|
952 | ||
953 | // PREPARE COLOR TABLE (RGBQUADs) |
|
954 | if($this->m_img->m_gih->m_bLocalClr) { |
|
955 | $nColors = $this->m_img->m_gih->m_nTableSize; |
|
956 | $pal = $this->m_img->m_gih->m_colorTable->toString(); |
|
957 | if($bgColor != -1) { |
|
958 | $bgColor = $this->m_img->m_gih->m_colorTable->colorIndex($bgColor); |
|
959 | } |
|
960 | } |
|
961 | else if($this->m_gfh->m_bGlobalClr) { |
|
962 | $nColors = $this->m_gfh->m_nTableSize; |
|
963 | $pal = $this->m_gfh->m_colorTable->toString(); |
|
964 | if($bgColor != -1) { |
|
965 | $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor); |
|
966 | } |
|
967 | } |
|
968 | else { |
|
969 | $nColors = 0; |
|
970 | $bgColor = -1; |
|
971 | } |
|
972 | ||
973 | // PREPARE BITMAP BITS |
|
974 | $data = $this->m_img->m_data; |