<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Change images colors</title>
		<link>http://www.allegro.cc/forums/view/617525</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 04 Aug 2018 22:52:55 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Please, i need changing images colors. For exemplo,  I need change my IMAGE.JPG to green. I need get two images to do anaglyph, is possible with Allegro?</p><p>How do it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Flávio Silva)</author>
		<pubDate>Sat, 04 Aug 2018 00:07:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Maybe &#39;al_draw_tinted_bitmap&#39; is what you are lookig for?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Frank Drebin)</author>
		<pubDate>Sat, 04 Aug 2018 15:50:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi, tks for your comment but I used this command. It return an image original and tinted in the same. How separate both and save only the tinted?   </p><p>The image is attached and the code is below:</p><p>ALLEGRO_BITMAP *bmp = NULL;<br />char path[256] = &quot;C:\\Dev\\ProgVisualizarEstereo\\&quot;;<br />strcpy(cta, path);<br />sprintf(numero, &quot;I1&quot;);<br />strcat(cta, numero);<br />strcat(cta, &quot;.jpg&quot;);<br />sprintf(filename, &quot;%s&quot;, cta);<br />bmp = al_load_bitmap(filename);<br />al_draw_tinted_bitmap(bmp, al_map_rgb(255, 0, 0), 0, 0, 0);<br />al_draw_scaled_bitmap(bmp, 150, 150, 4608, 2592, 400, 100, 2100, 1300, 0);<br />al_flip_display();<br />al_destroy_bitmap(bmp);
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Flávio Silva)</author>
		<pubDate>Sat, 04 Aug 2018 19:58:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It sounds like you want to save a bitmap with </p><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_save_bitmap"><span class="a">al_save_bitmap</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></span></p><p>&lt;code&gt;<br />/* Make a bitmap to save. */</p><p>ALLEGRO_BITMAP *bitmap_to_save = al_create_bitmap(....,....);</p><p>al_set_target_bitmap(bitmap_to_save);</p><p>/* draw tinted bitmap to bitmap_to_save : */</p><p>al_draw_tinted_bitmap(bmp, al_map_rgb(255, 0, 0), 0, 0, 0);</p><p>then al_save_bitmap();
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Sat, 04 Aug 2018 22:52:55 +0000</pubDate>
	</item>
</rss>
