Talk:Flipnote Files/PPM
Jump to navigation
Jump to search
Could you guys post a example for decoding the preview image? i cant figure out the 8x8 tile thing. i will give credit to you:).Preview of what i have: --pbsds 09:29, 24 December 2009 (UTC)
See User:Remark/Icon2ppm.c. -- Remark 09:45, 24 December 2009 (UTC)
Thanks:)--pbsds 09:55, 24 December 2009 (UTC)
It doesn't work! Here is the code im using(i had to transelate it):
Dim $ImageOutput[4072]
for x=0 to 46 step 1
{
for y=0 to 7 step 1
{
for z=0 To 7 Step 1
{
ImageOutput[($x*64)+(16*$y)+(4*$z)] = RawImage[($x*64)+(32*$z)+(4*$y)]
ImageOutput[($x*64)+(16*$y)+(4*$z)+1] = RawImage[($x*64)+(32*$z)+(4*$y)+1]
ImageOutput[($x*64)+(16*$y)+(4*$z)+2] = RawImage[($x*64)+(32*$z)+(4*$y)+2]
ImageOutput[($x*64)+(16*$y)+(4*$z)+3] = RawImage[($x*64)+(32*$z)+(4*$y)+3]
}
}
}