1 #define _CRT_SECURE_NO_DEPRECATE
7 ptf = fopen(name,
"wb");
9 fprintf(ptf,
"%u %u\n",sx,sy);
11 fwrite(buff,
sizeof(
color),sx*sy,ptf);
16 ptf = fopen(name,
"wb");
18 fprintf(ptf,
"%u %u\n",sx,sy);
20 fwrite(buff,
sizeof(
byte),sx*sy,ptf);
void PpmWrite(suint sx, suint sy, color *buff, const char *name)
void PgmWrite(suint sx, suint sy, byte *buff, const char *name)