<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>tint a bitmap</title>
		<link>http://www.allegro.cc/forums/view/590119</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 18 Feb 2007 05:43:51 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hi all,</p><p>i&#39;d like to tint a bitmap with a color, so i tried draw_lit_sprite. the function seems to do what i want, but it doesn&#39;t seem to skip the transparent color. it there a way to make draw_lit_sprite  skip the transparent color ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jamal)</author>
		<pubDate>Sat, 17 Feb 2007 23:51:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It <i>does</i> mask out transparent pixels. Show us your code, and attach a sprite that displays incorrectly.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Sat, 17 Feb 2007 23:54:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i attached a screenshot of the problem :<br />the sprite at the bottom is the original sprite, drawn with draw_sprite, and the sprite at the top is drawn with draw_lit_sprite. here&#39;s the code :
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/set_add_blender" target="_blank"><span class="a">set_add_blender</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/getr" target="_blank"><span class="a">getr</span></a><span class="k2">(</span>color<span class="k2">)</span>,<a href="http://www.allegro.cc/manual/getg" target="_blank"><span class="a">getg</span></a><span class="k2">(</span>color<span class="k2">)</span>,<a href="http://www.allegro.cc/manual/getb" target="_blank"><span class="a">getb</span></a><span class="k2">(</span>color<span class="k2">)</span>,<span class="n">128</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/draw_lit_sprite" target="_blank"><span class="a">draw_lit_sprite</span></a><span class="k2">(</span>bmp, asteroid, <span class="k2">(</span><span class="k1">int</span><span class="k2">)</span>b-&gt;getX<span class="k2">(</span><span class="k2">)</span>, <span class="k2">(</span><span class="k1">int</span><span class="k2">)</span>b-&gt;getY<span class="k2">(</span><span class="k2">)</span>, <span class="n">128</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

btw i work in 16bpp mode.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jamal)</author>
		<pubDate>Sun, 18 Feb 2007 00:12:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What does the sprite itself look like? Attach that, too.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Sun, 18 Feb 2007 00:32:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i was attaching the sprite when i noticed that the background color is ... black <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /><br />i was sure that all my sprites background is magic pink, i tested whith the only one that is not. anyway, thanks for your help <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> !
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jamal)</author>
		<pubDate>Sun, 18 Feb 2007 00:43:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code snippet"><div class="inner"><pre>Bitmap <span class="k3">*</span>b<span class="k2">;</span>
Tint t<span class="k2">;</span>

t.a <span class="k3">=</span> <span class="n">0</span>.<span class="n">5f</span><span class="k2">;</span>

b-&gt;blitToScreen<span class="k2">(</span>x, y, t<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Sun, 18 Feb 2007 05:37:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can we please get Dustin a custom title of &quot;Allegro.cc Official Troll&quot;?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Sun, 18 Feb 2007 05:40:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was actually trying to get a plug for the <a href="http://www.allegro.cc/forums/thread/589392">Thing</a> library, which would solve many of the OP&#39;s problems.</p><p>What I didn&#39;t bother explaining is that if you&#39;re trying to tint crap, you really shouldn&#39;t be using Allegro anymore.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Sun, 18 Feb 2007 05:43:51 +0000</pubDate>
	</item>
</rss>
