Difference between revisions of "Talk:Flipnote Files/PPM"

From DSiBrew
Jump to navigation Jump to search
Line 21: Line 21:
 
}</source>
 
}</source>
 
Output: [[Image:Test2.png]]
 
Output: [[Image:Test2.png]]
 +
 +
 +
----
 +
You made a typo here:
 +
for x=0 to 46 step
 +
-[[User:Remark|Remark]] 18:42, 24 December 2009 (UTC)

Revision as of 19:42, 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: FlipnoteImageDecodedByPBSDS.png--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]
		}
	}
}

Output: Test2.png



You made a typo here:

for x=0 to 46 step 

-Remark 18:42, 24 December 2009 (UTC)