<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pings from the void &#187; PImage</title>
	<atom:link href="http://thequietvoid.com/archives/tag/pimage/feed" rel="self" type="application/rss+xml" />
	<link>http://thequietvoid.com</link>
	<description>· )  -) --)  ---) ----) ------) ---------) --------------)  --------------------)</description>
	<lastBuildDate>Sat, 01 Jan 2011 08:03:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Saving uncompressed TGA</title>
		<link>http://thequietvoid.com/archives/207</link>
		<comments>http://thequietvoid.com/archives/207#comments</comments>
		<pubDate>Thu, 20 Mar 2008 23:26:44 +0000</pubDate>
		<dc:creator>Matt Ditton</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[PImage]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[tga]]></category>
		<category><![CDATA[toxi]]></category>
		<category><![CDATA[uncompressed]]></category>

		<guid isPermaLink="false">http://thequietvoid.com/?p=207</guid>
		<description><![CDATA[(this image has nothing to do with this post. Just something I&#8217;m working on) Alas RLE compression isn&#8217;t supported everywhere. Can&#8217;t expect the earth, it&#8217;s only old enough that I can&#8217;t find when it was invented. But onto the problem. I needed to dump out uncompressed tga&#8217;s from processing. Turns out this was an old [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/polymonkey/2346859161/"><img alt="" src="http://farm4.static.flickr.com/3248/2346859161_a4613b565e.jpg" title="Arch by matt ditton (AKA polymonkey), on Flickr" class="aligncenter" width="500" height="250" /></a><br />
(this image has nothing to do with this post. Just something I&#8217;m working on)</p>
<p>Alas <a href="http://en.wikipedia.org/wiki/RLE_Compression">RLE</a> compression isn&#8217;t supported everywhere. Can&#8217;t expect the earth, it&#8217;s only old enough that I can&#8217;t find when it was invented. But onto the problem.</p>
<p>I needed to dump out uncompressed tga&#8217;s from processing. Turns out this was an old processing feature that was upgraded to RLE. Because I&#8217;m still living in the dark ages, <a href="http://toxi.co.uk/blog/">Toxi</a> pointed me towards the original code that he wrote for uncompressed tga saving. Just so I don&#8217;t lose it and maybe other people are looking for something like this. Here is the slapped together bit of code.</p>
<p><a href='http://thequietvoid.com/wp-content/uploads/save_out_uncompressed_tga-080321a.zip'>The zipped up sketch</a></p>
<p>MattD</p>
]]></content:encoded>
			<wfw:commentRss>http://thequietvoid.com/archives/207/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing and tga&#8217;s</title>
		<link>http://thequietvoid.com/archives/217</link>
		<comments>http://thequietvoid.com/archives/217#comments</comments>
		<pubDate>Wed, 05 Mar 2008 23:43:19 +0000</pubDate>
		<dc:creator>Matt Ditton</dc:creator>
				<category><![CDATA[Processing]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[PImage]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[tga]]></category>

		<guid isPermaLink="false">http://thequietvoid.com/?p=217</guid>
		<description><![CDATA[You can always depend on a tga. That faithful image format is like an old friend. But processing has a bug where is saves them out upside down. You can see the bug in this code [cce lang="java"] line(10,10,90,90); save(&#8220;data/img.tga&#8221;); PImage img = loadImage(&#8220;img.tga&#8221;); img.save(&#8220;data/img2.tga&#8221;); exit(); [/cce] Until a fix gets in, here is a [...]]]></description>
			<content:encoded><![CDATA[<p>You can always depend on a <a href="http://en.wikipedia.org/wiki/Truevision_TGA">tga</a>. That faithful image format is like an old friend. But processing has a bug where is saves them out upside down. You can see the bug in this code<br />
[cce lang="java"]<br />
line(10,10,90,90);<br />
save(&#8220;data/img.tga&#8221;);<br />
PImage img = loadImage(&#8220;img.tga&#8221;);<br />
img.save(&#8220;data/img2.tga&#8221;);<br />
exit();<br />
[/cce]<br />
Until a fix gets in, here is a workaround<br />
[cce lang="java"]<br />
line(10,10,90,90);<br />
save(&#8220;data/img.tga&#8221;);<br />
PImage img = loadImage(&#8220;img.tga&#8221;);<br />
PImage outImg = createImage(img.width, img.height, ARGB);<br />
for(int x = 0; x <  &#8230;. waitaminute<br />
[/cce]<br />
UPDATE:</p>
<p>It&#8217;s fixed for 0136. WooT</p>
]]></content:encoded>
			<wfw:commentRss>http://thequietvoid.com/archives/217/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

