Difference between revisions of "Talk:Flipnote Files/PPM"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
for x=0 to 46 step | for x=0 to 46 step | ||
-[[User:Remark|Remark]] 18:42, 24 December 2009 (UTC) | -[[User:Remark|Remark]] 18:42, 24 December 2009 (UTC) | ||
+ | |||
+ | Made no difference...--[[User:Pbsds|pbsds]] 21:08, 24 December 2009 (UTC) |
Revision as of 22:08, 24 December 2009
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]
}
}
}
You made a typo here:
for x=0 to 46 step
-Remark 18:42, 24 December 2009 (UTC)
Made no difference...--pbsds 21:08, 24 December 2009 (UTC)