* Format code style.

This commit is contained in:
zhujinyong
2021-03-17 11:33:57 +08:00
parent 6c5d084938
commit adeec9e34a
6 changed files with 25 additions and 10 deletions
+4 -2
View File
@@ -759,7 +759,8 @@ class fileModel extends model
* @access public
* @return resource
*/
public function imagecreatefrombmp($filename) {
public function imagecreatefrombmp($filename)
{
$f = fopen($filename, "rb");
//read header
@@ -782,7 +783,8 @@ class fileModel extends model
$img = imagecreatetruecolor($header['width'], $header['height']);
//read pixels
for ($y = $hei - 1; $y >= 0; $y--) {
for($y = $hei - 1; $y >= 0; $y--)
{
$row = fread($f, $wid2);
$pixels = str_split($row, 3);