<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Rag-D_file_format</id>
	<title>Rag-D file format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Rag-D_file_format"/>
	<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Rag-D_file_format&amp;action=history"/>
	<updated>2026-05-06T18:57:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Rag-D_file_format&amp;diff=16640&amp;oldid=prev</id>
		<title>&gt;Lp: New page</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Rag-D_file_format&amp;diff=16640&amp;oldid=prev"/>
		<updated>2017-01-27T06:47:18Z</updated>

		<summary type="html">&lt;p&gt;New page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
                           --------------------------&lt;br /&gt;
                           *- Rag - D Picture File -*&lt;br /&gt;
                           --------------------------&lt;br /&gt;
&lt;br /&gt;
Header :&lt;br /&gt;
&lt;br /&gt;
Name of Part -|- Length in Bytes  -|- Kind of Data  -|- Function&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Identify      |  6 Bytes           | Ascii           | Header. MUST be &amp;quot;RAG-D!&amp;quot;&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PackAlgo      |  2 Bytes           | 1 Word          | used Pack-Algorithm&lt;br /&gt;
--------------+--------------------+-----------------+ 0 = unpacked.&lt;br /&gt;
..                                                   | rest not used till yet&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicLength     |  4 Bytes           | 1 Long unsigned | IMPORTANT !!! &lt;br /&gt;
..            |                    |                 | READ APPENDIX A !! &lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicColums     |  2 Bytes           | 1 Word unsigned | X - Size of the picture&lt;br /&gt;
..            |                    |                 | eg. 320,640 aso, is&lt;br /&gt;
..            |                    |                 | always dividable by 16!&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicRows       |  2 Bytes           | 1 Word unsigned | Y - Size of the picture&lt;br /&gt;
..            |                    |                 | eg. 200,240,480 aso.&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Planes        |  2 Bytes           | 1 Word unsigned | Number of Bitplains&lt;br /&gt;
..            |                    |                 | eg. 1,2,4,8,16 aso&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PalLength     |  4 Bytes           | 1 Long unsigned | Length of Palette Data&lt;br /&gt;
..            |                    |                 | eg. 1024 or 32&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Contrl_One    |  2 Bytes           | 1 Word unsigned | Control Bits |76543210|&lt;br /&gt;
--------------+--------------------+-----------------+ Bit 0 = 1 --&amp;gt; there is&lt;br /&gt;
..                                                   | a 370 Bytes long picture&lt;br /&gt;
..                                                   | documentation after the&lt;br /&gt;
..                                                   | picture - data&lt;br /&gt;
..                                                   | Bit 1 = 1 --&amp;gt; there is&lt;br /&gt;
..                                                   | a 8 Bytes long info &lt;br /&gt;
..                                                   | with date of creation&lt;br /&gt;
..                                                   | and working-time behind&lt;br /&gt;
..                                                   | the pic-data (and docu-&lt;br /&gt;
..                                                   | mentation if exist )&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Contrl_Two    |  2 Bytes           | 1 Word unsigned | -unused-&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Contrl_Three  |  2 Bytes           | 1 Word unsigned | -unused-&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
Contrl_Four   |  2 Bytes           | 1 Word unsigned | -unused-&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PaletteData   |  PalLength Bytes   | Words or Longs  | when Length is = 32 you&lt;br /&gt;
--------------+--------------------+-----------------| the ST - Hardware-Format&lt;br /&gt;
..                                                   | have been used and if &lt;br /&gt;
..                                                   | PalLength= 1024 the F030&lt;br /&gt;
..                                                   | Hardware- Registers have&lt;br /&gt;
..                                                   | been saved. Just copy &lt;br /&gt;
..                                                   | into the registers. &lt;br /&gt;
..                                                   | If the picture is a True&lt;br /&gt;
..                                                   | Color 16 bit Picture,&lt;br /&gt;
..                                                   | here follows a palette&lt;br /&gt;
..                                                   | with : &amp;lt;0&amp;gt;,&amp;lt;R&amp;gt;,&amp;lt;G&amp;gt;,&amp;lt;B&amp;gt;&lt;br /&gt;
..                                                   | from 0-255 (not 0-31!)&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicData       | see Appendix A !   | X - Bytes       | Picture Data as RAW&lt;br /&gt;
--------------+--------------------+-----------------+ eg.  : Plane 0 Word 0..&lt;br /&gt;
..                                                   |        Plane 1 Word 0..&lt;br /&gt;
..                                                   | or in True color :&lt;br /&gt;
..                                                   | pixel 0, pixel 1, aso.&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicDokument   | 370 Bytes          | ASCII           | description of picture&lt;br /&gt;
..                                                   | eg. Name of painter aso&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicDate       | 2 Bytes &amp;amp; 1 Word   | all unsigned    | 1. Byte = Day&lt;br /&gt;
--------------+--------------------+-----------------+ 2. Byte = Month&lt;br /&gt;
..                                                   | 3. &amp;amp; 4. = Year&lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
PicWorkTime   | 4 Bytes            | Long unsigned   | Seconds of Worktime                                                       &lt;br /&gt;
--------------+--------------------+-----------------+-------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
APPENDIX A&lt;br /&gt;
----------&lt;br /&gt;
&lt;br /&gt;
To get the correct length of the picture data you should do this:&lt;br /&gt;
&lt;br /&gt;
for loading :&lt;br /&gt;
NewPicLen = PicLength/PicRows*(PicRows+1)&lt;br /&gt;
&lt;br /&gt;
if you save RAG-D pictures calculate like this :&lt;br /&gt;
PicLength = PicColums/8*(PicRows-1)*Bitplains&lt;br /&gt;
&lt;br /&gt;
else my program wount read your pictures ! ( or loads and crashes ! )&lt;br /&gt;
&lt;br /&gt;
Don't let the scene die !                            +-------------------------+&lt;br /&gt;
                                                     | for more infos write to |&lt;br /&gt;
                                                     | Tobias Bonnke           |&lt;br /&gt;
                                                     | Postfach 1171           |&lt;br /&gt;
                                                     | 72564 Bad Urach         |&lt;br /&gt;
                                                     | Germany / Earth         |&lt;br /&gt;
                                                     +-------------------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Back to [[ST Picture Formats]]&lt;/div&gt;</summary>
		<author><name>&gt;Lp</name></author>
	</entry>
</feed>