<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Printing tex on top of a bitmap image??</title>
		<link>http://www.allegro.cc/forums/view/591636</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 30 May 2007 06:55:10 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Howdy everyone.</p><p>I have been looking and searching the forums here for an answer and I am either missing it, or I am to dense to recognize it when I see it. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>I am working on learning C and Allegro.</p><p>I have a small program right now that loads a bitmap image and displays it.<br />That part is working fine.</p><p>Also have it loading a wav file and play that...That i working fine too.</p><p>What is giving me trouble right now is printing something on the screen with the bitmap.</p><p>I have tried using several methods. What I get s the text on the bitmap in a black box.</p><p>I assume I am erasing the bitmap in that spot and writing the text.</p><p>I have tried bliting to the screen, a double buffer, etc.<br />Always the same result.</p><p>Anyone who can point me in the right direction here? I don&#39;t necessarily want you to write the code...Just point me to the info would be fine.</p><p>Thanks </p><p>Karl
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (karl_d)</author>
		<pubDate>Wed, 30 May 2007 06:14:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You draw the bitmap first, right? If you do, the text is being written over top and the black background behind it is blocking out some of the bitmap.</p><p>Use this:</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/textout_ex" target="_blank"><span class="a">textout_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bmp, <span class="k1">const</span> <a href="http://www.allegro.cc/manual/FONT" target="_blank"><span class="a">FONT</span></a> <span class="k3">*</span>f, <span class="k1">const</span> <span class="k1">char</span> <span class="k3">*</span>s, <span class="k1">int</span> x, y, color, bg<span class="k2">)</span><span class="k2">;</span>  

<span class="c">/*This will draw the string "This is the text" in white, at (x, y) on the screen. The  (-1) passed to bg will cause the background of the text to be transparent, not black */</span>
<a href="http://www.allegro.cc/manual/textout_ex" target="_blank"><span class="a">textout_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <a href="http://www.allegro.cc/manual/font" target="_blank"><span class="a">font</span></a>, <span class="s">"This is the text"</span>, x, y, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">255</span>,<span class="n">255</span>,<span class="n">255</span><span class="k2">)</span>, <span class="k2">(</span><span class="k3">-</span><span class="n">1</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (moon_rabbits)</author>
		<pubDate>Wed, 30 May 2007 06:21:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks.. I will give that a whirl and see what happens.</p><p>I just figured out how to customize a mouse pointer <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /> so I gotta finish<br />playing with that first.</p><p>Karl</p><p>OK!!!</p><p>That fixed the issue. Thanks a bunch!!!!</p><p>Karl
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (karl_d)</author>
		<pubDate>Wed, 30 May 2007 06:55:10 +0000</pubDate>
	</item>
</rss>
