<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Alpha Channel</title>
		<link>http://www.allegro.cc/forums/view/591122</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 23 Apr 2007 12:50:27 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi everyone, i&#39;m would like to ask you, how i can load a graphic that uses alphachannels. For example this one:<br />[img]<a href="http://www.videogamesprites.net/SecretofMana/Party/Randi%20(Front).gif[/img">http://www.videogamesprites.net/SecretofMana/Party/Randi%20(Front).gif[/img</a>]</p><p>I would be glad if anyone could help me <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Marcel
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marcel)</author>
		<pubDate>Sun, 22 Apr 2007 22:26:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Hi everyone, i&#39;m would like to ask you, how i can load a graphic that uses alphachannels.
</p></div></div><p>
<span class="source-code"><a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="k2">)</span></span></p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
For example this one: <a href="http://www.videogamesprites.net/SecretofMana/Party/Randi%20(Front).gif">http://www.videogamesprites.net/SecretofMana/Party/Randi%20(Front).gif</a>
</p></div></div><p>
That picture is a GIF. GIFs have no alpha channels.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Sun, 22 Apr 2007 22:31:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>would it be better to use load_tga(), because I want to load an image with one invisible pixel ( sorry for alphachannel missmatching <img src="http://www.allegro.cc/forums/smileys/embarassed.gif" alt=":-[" /> ). Or do i have to do other things first. I simply want that pallete entry 1 is invisible.</p><p>Greeting <br />Marcel
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marcel)</author>
		<pubDate>Sun, 22 Apr 2007 22:38:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If by &quot;palette entry 1&quot; you mean &quot;the <i>first</i> palette entry&quot; (i.e. palette index 0), then any format that Allegro can load will do. Just load as usual.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Sun, 22 Apr 2007 23:13:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>8 bit graphics:<br />You have a palette with 256 colours. Colour #0 can be used as transparent when blitting sprites. Each colour in the palette is defined as an 18 bit colour, not as a 24 bit colour. Creating a colour entry in the palette kind of rounds any value between 0 and 255 in any channel into a value divisible by 4. This happens in Allegro, not in your graphic editor. </p><p>24 bit graphics:<br />You can use any colour you get, when blending 256 shades of red, 256 shades of green and 256 shades of blue. One of these 16.7 million colours can be used as a transparent colour when blitting sprites. Magenta by default.</p><p>32 bit graphics:<br />Like 24 bit graphics, but 8 bit per each pixel defines the alpha channel value, which usually defines the transparency/opacity level of the pixel.</p><p>In any case you need a graphic editor that handles the graphics properly. The palette thing is usually a mess. Editors create new palettes while you are editing and they don&#39;t give a damn about you trying to preserve the entry number of each colour and especially the transparent #0. The 24 bit thing with magenta is stupid, because 24 bit usually means beautiful colours and &quot;antialiased&quot; contours and gradients, but the edge to the transparent magenta area is jagged like in a poor 8 bit sprite. Or even worse, you see a magenta halo around your sprite.</p><p>Read about:
</p><ol><li><p>Blitting and sprites
</p></li><li><p>Transparency and patterned drawing
</p></li></ol><p>in the f^H manual.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Halmén)</author>
		<pubDate>Mon, 23 Apr 2007 12:50:27 +0000</pubDate>
	</item>
</rss>
