Changeset 7655 for trunk/expressoMail1_2/inc/gd_functions.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/gd_functions.php
r5509 r7655 53 53 $img=imagecreate($Width,$Height); 54 54 $Colors=pow(2,$biBitCount); 55 for($p=0;$p<$Colors; $p++)55 for($p=0;$p<$Colors;++$p) 56 56 { 57 57 $B=freadbyte($f); … … 72 72 { 73 73 $CurrentBit=0; 74 for($x=0;$x<$Width; $x++)74 for($x=0;$x<$Width;++$x) 75 75 { 76 76 $C=freadbits($f,$biBitCount); … … 78 78 }; 79 79 if($CurrentBit!=0) {freadbyte($f);}; 80 for($g=0;$g<$Zbytek; $g++)80 for($g=0;$g<$Zbytek;++$g) 81 81 freadbyte($f); 82 82 }; … … 112 112 $Data.=fread($f,$pocet); 113 113 $pocetb+=$pocet; 114 if($pocetb%2==1) {freadbyte($f); $pocetb++;};114 if($pocetb%2==1) {freadbyte($f); ++$pocetb;}; 115 115 }; 116 116 if($prefix>0) 117 117 { 118 118 $pocet=$prefix; 119 for($r=0;$r<$pocet; $r++)119 for($r=0;$r<$pocet;++$r) 120 120 $Data.=chr($suffix); 121 121 }; … … 126 126 }; 127 127 128 for($x=0;$x<strlen($Data); $x++)128 for($x=0;$x<strlen($Data);++$x) 129 129 { 130 130 imagesetpixel($img,$x,$y,$Palette[ord($Data[$x])]); … … 165 165 166 166 $CurrentBit=0; 167 for($h=0;$h<$pocet; $h++)167 for($h=0;$h<$pocet;++$h) 168 168 $Data.=chr(freadbits($f,4)); 169 169 if($CurrentBit!=0) freadbits($f,4); 170 170 $pocetb+=ceil(($pocet/2)); 171 if($pocetb%2==1) {freadbyte($f); $pocetb++;};171 if($pocetb%2==1) {freadbyte($f); ++$pocetb;}; 172 172 }; 173 173 if($prefix>0) … … 175 175 $pocet=$prefix; 176 176 $i=0; 177 for($r=0;$r<$pocet; $r++)177 for($r=0;$r<$pocet;++$r) 178 178 { 179 179 if($i%2==0) … … 185 185 $Data.=chr(floor($suffix/16)); 186 186 }; 187 $i++;187 ++$i; 188 188 }; 189 189 }; … … 194 194 }; 195 195 196 for($x=0;$x<strlen($Data); $x++)196 for($x=0;$x<strlen($Data);++$x) 197 197 { 198 198 imagesetpixel($img,$x,$y,$Palette[ord($Data[$x])]); … … 212 212 for($y=$Height-1;$y>=0;$y--) 213 213 { 214 for($x=0;$x<$Width; $x++)214 for($x=0;$x<$Width;++$x) 215 215 { 216 216 $B=freadbyte($f); … … 221 221 imagesetpixel($img,$x,$y,$color); 222 222 } 223 for($z=0;$z<$Zbytek; $z++)223 for($z=0;$z<$Zbytek;++$z) 224 224 freadbyte($f); 225 225 }; … … 336 336 $bin=decbin($d); 337 337 $sbin=strlen($bin); 338 for($j=0;$j<$n-$sbin; $j++)338 for($j=0;$j<$n-$sbin;++$j) 339 339 $bin="0$bin"; 340 340 return $bin;
Note: See TracChangeset
for help on using the changeset viewer.