git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12004 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2014-05-20 16:27:24 +00:00
parent 23892d4fc5
commit 4b8aa5d4e7

View File

@ -1081,10 +1081,10 @@ void Image::write_PNG(FILE *fp)
void Image::write_PPM(FILE *fp)
{
fprintf (fp,"P6\n%d %d\n255\n",width,height);
fprintf(fp,"P6\n%d %d\n255\n",width,height);
int y;
for (y = height-1; y >= 0; y --)
for (y = height-1; y >= 0; y--)
fwrite(&writeBuffer[y*width*3],3,width,fp);
}