<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dsibrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chronic667</id>
	<title>DSiBrew - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dsibrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chronic667"/>
	<link rel="alternate" type="text/html" href="https://dsibrew.org/wiki/Special:Contributions/Chronic667"/>
	<updated>2026-04-17T02:34:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=Talk:Flipnote_Files/PPM&amp;diff=2659</id>
		<title>Talk:Flipnote Files/PPM</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=Talk:Flipnote_Files/PPM&amp;diff=2659"/>
		<updated>2010-01-13T19:40:37Z</updated>

		<summary type="html">&lt;p&gt;Chronic667: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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: [[Image:FlipnoteImageDecodedByPBSDS.png]]--[[User:Pbsds|pbsds]] 09:29, 24 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
See [[User:Remark/Icon2ppm.c]]. -- [[User:Remark|Remark]] 09:45, 24 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thanks:)--[[User:Pbsds|pbsds]] 09:55, 24 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
It doesn&#039;t work! Here is the code im using(i had to transelate it):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;&amp;quot;&amp;gt;Dim $ImageOutput[4072]&lt;br /&gt;
for $x=0 to 46 step 1&lt;br /&gt;
	for $y=0 to 7 step 1&lt;br /&gt;
		for $z=0 To 7 Step 1&lt;br /&gt;
			ImageOutput[($x*64)+(16*$y)+(4*$z)]   = RawImage[($x*64)+(32*$z)+(4*$y)]&lt;br /&gt;
			ImageOutput[($x*64)+(16*$y)+(4*$z)+1] = RawImage[($x*64)+(32*$z)+(4*$y)+1]&lt;br /&gt;
			ImageOutput[($x*64)+(16*$y)+(4*$z)+2] = RawImage[($x*64)+(32*$z)+(4*$y)+2]&lt;br /&gt;
			ImageOutput[($x*64)+(16*$y)+(4*$z)+3] = RawImage[($x*64)+(32*$z)+(4*$y)+3]&lt;br /&gt;
		Next&lt;br /&gt;
	Next&lt;br /&gt;
Next&amp;lt;/source&amp;gt;&lt;br /&gt;
Output: [[Image:Test2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
You made a typo here:&lt;br /&gt;
 for x=0 to 46 step &lt;br /&gt;
-[[User:Remark|Remark]] 18:42, 24 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Made no difference...--[[User:Pbsds|pbsds]] 21:08, 24 December 2009 (UTC)&lt;br /&gt;
----&lt;br /&gt;
If you would&#039;ve used a sane language, you would&#039;ve gotten a segfault. :-)&lt;br /&gt;
&lt;br /&gt;
Please do some research on the tiling, my code is written for the 32x32 icons you see in the DSiMenu.&lt;br /&gt;
&lt;br /&gt;
- [[User:Remark|Remark]] 21:52, 24 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I had to set the RawImage and the ImageOutput arrays to 1000 more pixels than needed to avoid the segfault.&lt;br /&gt;
&lt;br /&gt;
I think i&#039;ll try again tomorrow. but now im off to bed:)--[[User:Pbsds|pbsds]] 00:39, 25 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
WooHoo! im really close now!: [[Image:Test3.png]]--[[User:Pbsds|pbsds]] 14:43, 25 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Finaly got it!: [[Image:Test4.png]]--[[User:Pbsds|pbsds]] 21:26, 27 December 2009 (UTC)&lt;br /&gt;
== Pallete ==&lt;br /&gt;
i don&#039;t think my RGB pallete is perfect... Could someone post a RGB version of the pallete? My pallete have too sharp colors :( --[[User:Pbsds|pbsds]] 01:03, 4 January 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Maybe i should post my pallete so you guys can check if its wrong:&lt;br /&gt;
&lt;br /&gt;
0 = FFFFFF&lt;br /&gt;
&lt;br /&gt;
1 = 525252&lt;br /&gt;
&lt;br /&gt;
2 = FFFFFF&lt;br /&gt;
&lt;br /&gt;
3 = A4A4A4&lt;br /&gt;
&lt;br /&gt;
4 = FF0000&lt;br /&gt;
&lt;br /&gt;
5 = 7B0000&lt;br /&gt;
&lt;br /&gt;
6 = FF7B7B&lt;br /&gt;
&lt;br /&gt;
7 = 00FF00&lt;br /&gt;
&lt;br /&gt;
8 = 0000FF&lt;br /&gt;
&lt;br /&gt;
9 = 00007B&lt;br /&gt;
&lt;br /&gt;
A = 7B7BFF&lt;br /&gt;
&lt;br /&gt;
B = 00FF00&lt;br /&gt;
&lt;br /&gt;
C = FF00FF&lt;br /&gt;
&lt;br /&gt;
D = 00FF00&lt;br /&gt;
&lt;br /&gt;
E = 00FF00&lt;br /&gt;
&lt;br /&gt;
F = 00FF00&lt;br /&gt;
&lt;br /&gt;
--[[User:Pbsds|pbsds]] 10:52, 4 January 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Use the following formula:&lt;br /&gt;
(x / 32) * 256&lt;br /&gt;
To convert between the scales 0-31 and 0-255.&lt;br /&gt;
&lt;br /&gt;
Thanks!--[[User:Pbsds|pbsds]] 15:15, 5 January 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Has anyone managed to get a modified PPM file running on the DSi? If so, can you update the wiki with your findings.&lt;br /&gt;
[[User:Chronic667|Chronic667]] 20:40, 13 January 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Chronic667</name></author>
	</entry>
</feed>