<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.xoreos.org/index.php?action=history&amp;feed=atom&amp;title=Ncgr2tga</id>
	<title>Ncgr2tga - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xoreos.org/index.php?action=history&amp;feed=atom&amp;title=Ncgr2tga"/>
	<link rel="alternate" type="text/html" href="https://wiki.xoreos.org/index.php?title=Ncgr2tga&amp;action=history"/>
	<updated>2026-04-30T13:51:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.6</generator>
	<entry>
		<id>https://wiki.xoreos.org/index.php?title=Ncgr2tga&amp;diff=185&amp;oldid=prev</id>
		<title>DrMcCoy: Created page with &quot;Nintendo NCGR image to TGA converter  = Synopsis =   ncgr2tga [&lt;options&gt;] &lt;width&gt; &lt;height&gt; &lt;ncgr&gt; [&lt;ngr&gt; [...]] &lt;nclr&gt; &lt;tga&gt;  = Description =  &#039;&#039;&#039;ncgr2tga&#039;&#039;&#039; converts Nintendo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.xoreos.org/index.php?title=Ncgr2tga&amp;diff=185&amp;oldid=prev"/>
		<updated>2015-09-18T22:38:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Nintendo NCGR image to TGA converter  = Synopsis =   ncgr2tga [&amp;lt;options&amp;gt;] &amp;lt;width&amp;gt; &amp;lt;height&amp;gt; &amp;lt;ncgr&amp;gt; [&amp;lt;ngr&amp;gt; [...]] &amp;lt;nclr&amp;gt; &amp;lt;tga&amp;gt;  = Description =  &amp;#039;&amp;#039;&amp;#039;ncgr2tga&amp;#039;&amp;#039;&amp;#039; converts Nintendo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Nintendo NCGR image to TGA converter&lt;br /&gt;
&lt;br /&gt;
= Synopsis =&lt;br /&gt;
&lt;br /&gt;
 ncgr2tga [&amp;lt;options&amp;gt;] &amp;lt;width&amp;gt; &amp;lt;height&amp;gt; &amp;lt;ncgr&amp;gt; [&amp;lt;ngr&amp;gt; [...]] &amp;lt;nclr&amp;gt; &amp;lt;tga&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Description =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ncgr2tga&amp;#039;&amp;#039;&amp;#039; converts Nintendo&amp;#039;s tile-based NCGR images into common TGA images.&lt;br /&gt;
&lt;br /&gt;
2D graphics on the Nintendo DS is fundamentally tile-based. Specifically, the graphics data in NCGR is ordered in tiles of 8x8 pixels. Moreover, an NCGR file can itself be a tile of a larger image. This tool can automatically combine and unwrap these tiles, and, together with an NCLR file for the palette, converts a grid of NCGR into a plain old linear TGA image.&lt;br /&gt;
&lt;br /&gt;
= Options =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;-h&amp;#039;&amp;#039;&amp;#039; &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--help&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: Show a help text and exit.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;--version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: Show version information and exit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;width&amp;gt;&lt;br /&gt;
: The width of the NCGR grid, in NCGR files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;height&amp;gt;&lt;br /&gt;
: The height of the NCGR grid, in NCGR files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ncgr&amp;gt;&lt;br /&gt;
: The name of an NCGR file to use. The NCGR contains the pixel graphics part of the image.&lt;br /&gt;
&lt;br /&gt;
: width x height NCGR files have to be given; they are drawn into the final TGA in row-major order. An empty filename, commonly specified with &amp;quot;&amp;quot;, means that this grid cell will be empty, filled with palette entry 0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nclr&amp;gt;&lt;br /&gt;
: The name of the NCLR file to use. The NCLR file contains the palette part of the image.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tga&amp;gt;&lt;br /&gt;
: The resulting TGA file will be written there.&lt;br /&gt;
&lt;br /&gt;
= Limitations =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;- &amp;#039;&amp;#039;&amp;#039;Only NCGR files with version 1.1 are supported &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;- &amp;#039;&amp;#039;&amp;#039;Only NCLR files with version 1.0 are supported &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;- &amp;#039;&amp;#039;&amp;#039;Only palettes with bit-depths of 4 or 8 are supported &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;- &amp;#039;&amp;#039;&amp;#039;Non-tiled or partitioned NCGR files are not supported &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;- &amp;#039;&amp;#039;&amp;#039;Some NCGR files don&amp;#039;t contain valid width/height values, and seem to need an NCER file for this information. These files are currently not supported &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
&lt;br /&gt;
Convert a 2x3 grid of NCGR files:&lt;br /&gt;
 ncgr2tga 2 3 a0.ncgr a1.ncgr a2.ncgr a3.ncgr a4.ncgr a5.ncgr a.nclr a.tga&lt;br /&gt;
&lt;br /&gt;
Convert a 2x2 grid of NCGR files, leaving the lower left quadrant blank:&lt;br /&gt;
 ncgr2tga 2 2 b0.ncgr, b1.ncgr &amp;quot;&amp;quot; b2.ncgr b.nclr b.tga&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
[[cbgt2tga]]&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* https://github.com/pleonex/tinke/blob/30e91bfff13555279e6fd69dd0de82961936a1dd/Plugins/Images/Images/NCGR.cs&lt;br /&gt;
* http://llref.emutalk.net/docs/?file=xml/ncgr.xml&lt;/div&gt;</summary>
		<author><name>DrMcCoy</name></author>
	</entry>
</feed>