<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Sending a memory bitmap over internet</title>
		<link>http://www.allegro.cc/forums/view/611084</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 20 Sep 2012 08:39:40 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was wondering how this would be done?<br />Let&#39;s say i draw a new picture in game, so it is saved as a memory bitmap. Then i wanted to send it over internet to another computer who would load and show it.</p><p>Should the bitmap be serialized or how would you be able to send it just like any other information? The network commands are no problem, just the method of sending the bitmap.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pekka keke)</author>
		<pubDate>Thu, 20 Sep 2012 02:15:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>lock it with <span class="source-code"><a href="http://www.allegro.cc/manual/al_lock_bitmap"><span class="a">al_lock_bitmap</span></a></span>, send it with the width and height byte by byte respecting the pitch then <span class="source-code"><a href="http://www.allegro.cc/manual/al_unlock_bitmap"><span class="a">al_unlock_bitmap</span></a></span> it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Thu, 20 Sep 2012 02:18:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Lossless = png file<br />Lossy = jpg file<br />Done
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Thu, 20 Sep 2012 02:19:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried a huge for loop to check the bitmap and send it that way, well it worked but i wonder how can you give process time for other actions also? Right now the game jams for a few seconds. I tried Sleep() but it just jammed it completely. </p><p>And i wonder what Arthur was trying to say.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (pekka keke)</author>
		<pubDate>Thu, 20 Sep 2012 08:36:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Arthur was saying, saving the bitmap with <span class="source-code"><a href="http://www.allegro.cc/manual/al_save_bitmap"><span class="a">al_save_bitmap</span></a></span> and send that file. If you want the process to not &quot;jam&quot; then use <span class="source-code"><a href="http://www.allegro.cc/manual/al_create_thread"><span class="a">al_create_thread</span></a></span> or <span class="source-code"><a href="http://www.allegro.cc/manual/al_run_detached_thread"><span class="a">al_run_detached_thread</span></a></span>.</p><p>EDIT: Arthur&#39;s idea is good if you can possibly do that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Thu, 20 Sep 2012 08:39:40 +0000</pubDate>
	</item>
</rss>
