Lines Matching refs:m_gfh
799 public $m_gfh; variable in CGIF
809 $this->m_gfh = new CGIFFILEHEADER();
831 if (!$this->m_gfh->load($this->m_lpData, $len = 0)) {
885 } elseif ($this->m_gfh->m_bGlobalClr) {
886 $nColors = $this->m_gfh->m_nTableSize;
887 $rgbq = $this->m_gfh->m_colorTable->toRGBQuad();
889 $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor);
899 $nPxl = ($this->m_gfh->m_nHeight - 1) * $this->m_gfh->m_nWidth;
901 $nPad = ($this->m_gfh->m_nWidth % 4) ? 4 - ($this->m_gfh->m_nWidth % 4) : 0;
902 for ($y = 0; $y < $this->m_gfh->m_nHeight; $y++) {
903 for ($x = 0; $x < $this->m_gfh->m_nWidth; $x++, $nPxl++) {
913 $bmp .= chr($this->m_gfh->m_nBgColor);
923 $bmp .= chr($this->m_gfh->m_nBgColor);
929 $nPxl -= $this->m_gfh->m_nWidth << 1;
946 $out .= $this->dword($this->m_gfh->m_nWidth);
947 $out .= $this->dword($this->m_gfh->m_nHeight);
985 } elseif ($this->m_gfh->m_bGlobalClr) {
986 $nColors = $this->m_gfh->m_nTableSize;
987 $pal = $this->m_gfh->m_colorTable->toString();
989 $bgColor = $this->m_gfh->m_colorTable->colorIndex($bgColor);
1001 for ($y = 0; $y < $this->m_gfh->m_nHeight; $y++) {
1003 for ($x = 0; $x < $this->m_gfh->m_nWidth; $x++, $nPxl++) {
1014 $bmp .= chr($this->m_gfh->m_nBgColor);
1030 $tmp .= $this->ndword($this->m_gfh->m_nWidth);
1031 $tmp .= $this->ndword($this->m_gfh->m_nHeight);
1084 } elseif ($this->m_gfh->m_bGlobalClr) {
1085 $pal = $this->m_gfh->m_colorTable->toString();
1090 $PlottingIMG = imagecreate($this->m_gfh->m_nWidth, $this->m_gfh->m_nHeight);
1103 $nPxl = ($this->m_gfh->m_nHeight - 1) * $this->m_gfh->m_nWidth;
1104 for ($y = 0; $y < $this->m_gfh->m_nHeight; $y++) {
1108 for ($x = 0; $x < $this->m_gfh->m_nWidth; $x++, $nPxl++) {
1116 …imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_…
1118 …imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[ord($data[$nPxl]…
1122 …imagesetpixel($PlottingIMG, $x, $this->m_gfh->m_nHeight - $y - 1, $ThisImageColor[$this->m_gfh->m_…
1125 $nPxl -= $this->m_gfh->m_nWidth << 1;
1152 return $this->m_gfh->m_nWidth;
1159 return $this->m_gfh->m_nHeight;