I have file pbm P1 (ascii)
P1
#Created by Venom
2 2
1 0
0 1
And I want to convert it as P4 (pbm binary). How I can do this?
i have pixel array of int
int pixel[HEIGHT][WIDTH];
I need convert it to binary array here
for (int i =0; i < HEIGHT ; i++)
{
for (int j =0; j < WIDTH; j++)
{
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…