<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 4: colour inversion in RGBAImage.h</title><link>https://sourceforge.net/p/pdiff/bugs/4/</link><description>Recent changes to 4: colour inversion in RGBAImage.h</description><atom:link href="https://sourceforge.net/p/pdiff/bugs/4/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 24 Jul 2010 11:19:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pdiff/bugs/4/feed.rss" rel="self" type="application/rss+xml"/><item><title>colour inversion in RGBAImage.h</title><link>https://sourceforge.net/p/pdiff/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I ported this application to the haXe programming language, and it now runs on 4 other languages. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://bitbucket.org/grumpytoad/pdiff-hx" rel="nofollow"&gt;http://bitbucket.org/grumpytoad/pdiff-hx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the process I noticed an inconsistency in RGBAImage.h, which effectively swaps the red and blue channels during a comparison. The following should be used for Get_Red and Get_Blue:&lt;/p&gt;
&lt;p&gt;unsigned char Get_Red(unsigned int i) { return ((Data[i] &amp;gt;&amp;gt; 16) &amp;amp; 0xFF); }&lt;br /&gt;
unsigned char Get_Blue(unsigned int i) { return (Data[i] &amp;amp; 0xFF); }&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 24 Jul 2010 11:19:09 -0000</pubDate><guid>https://sourceforge.net100b7d17cd7a0d392eebb00643895d927e1ead54</guid></item></channel></rss>