<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to load_image</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>Recent changes to load_image</description><atom:link href="https://sourceforge.net/p/arcanfe/wiki/load_image/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 21 Jun 2012 23:55:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/arcanfe/wiki/load_image/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v8
+++ v9
@@ -1,7 +1,8 @@
 **declaration:**
 
 ~~~~
-load_image(resource, startorder) =&gt; VID or BADID
+::lua
+function load_image(resource, startorder) =&gt; VID or BADID
 ~~~~
 
 Loads a resource as a image (png preferred) and maps to a VID.
@@ -20,4 +21,5 @@
 If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. 
 
 **related functions:**
+
 [load_image_asynch]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Thu, 21 Jun 2012 23:55:17 -0000</pubDate><guid>https://sourceforge.net9cf459244473b93b81241cb782af824dd4eb39bd</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v7
+++ v8
@@ -15,8 +15,9 @@
 show_image(vid);
 ~~~~
 
+**caveats:**
+
+If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. 
+
 **related functions:**
 [load_image_asynch]
-
-**caveats:**
-If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Thu, 21 Jun 2012 23:34:16 -0000</pubDate><guid>https://sourceforge.net8bc6413ace281debd1ac67799c0f8e84f392030f</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v6
+++ v7
@@ -16,7 +16,7 @@
 ~~~~
 
 **related functions:**
-[load_image_async]
+[load_image_asynch]
 
 **caveats:**
 If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Thu, 21 Jun 2012 21:03:46 -0000</pubDate><guid>https://sourceforge.net501312d49aa55465a469990323bbc1cd64a9b59e</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v5
+++ v6
@@ -1,4 +1,4 @@
-**definition:**
+**declaration:**
 
 ~~~~
 load_image(resource, startorder) =&gt; VID or BADID
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 10:50:01 -0000</pubDate><guid>https://sourceforge.net07504c12ec6227266d06eea76b61e58ed078cd36</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -19,6 +19,4 @@
 [load_image_async]
 
 **caveats:**
-If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. Any error that would have forced [load_image]to return BADID, will result in a blank (32x32) texture.
-
-[surface_storage_properties] an [surface_initial_properties] will not return valid data until the callback has been triggered.
+If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 09:13:38 -0000</pubDate><guid>https://sourceforge.netac58527d744ad17026ed37c1f0cb217a007ca910</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -19,4 +19,6 @@
 [load_image_async]
 
 **caveats:**
-If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. If a reload fails, the image is replaced with an error texture. 
+If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. Any error that would have forced [load_image]to return BADID, will result in a blank (32x32) texture.
+
+[surface_storage_properties] an [surface_initial_properties] will not return valid data until the callback has been triggered.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 09:12:54 -0000</pubDate><guid>https://sourceforge.netbd952d0623869aeb76fbd2951c562c66113af940</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -1,4 +1,5 @@
 **definition:**
+
 ~~~~
 load_image(resource, startorder) =&gt; VID or BADID
 ~~~~
@@ -8,6 +9,7 @@
 The routine is synchronous, so it may block.
 
 **example use:**
+
 ~~~~
 vid = load_image(resource, startorder);
 show_image(vid);
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 08:56:23 -0000</pubDate><guid>https://sourceforge.nete4a870b7cce555d6c04bcf27dac05707555bd92c</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,3 +1,4 @@
+**definition:**
 ~~~~
 load_image(resource, startorder) =&gt; VID or BADID
 ~~~~
@@ -6,14 +7,14 @@
 The VID has zero opacity (invisible) from the beginning.
 The routine is synchronous, so it may block.
 
-*example use:*
+**example use:**
 ~~~~
 vid = load_image(resource, startorder);
 show_image(vid);
 ~~~~
 
-*related functions:*
+**related functions:**
 [load_image_async]
 
-*caveats:*
+**caveats:**
 If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. If a reload fails, the image is replaced with an error texture. 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 08:55:59 -0000</pubDate><guid>https://sourceforge.net3b435b1665a30d92504f60c168d8e4a906fd3909</guid></item><item><title>WikiPage load_image modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image/</link><description>~~~~
load_image(resource, startorder) =&gt; VID or BADID
~~~~

Loads a resource as a image (png preferred) and maps to a VID.
The VID has zero opacity (invisible) from the beginning.
The routine is synchronous, so it may block.

*example use:*
~~~~
vid = load_image(resource, startorder);
show_image(vid);
~~~~

*related functions:*
[load_image_async]

*caveats:*
If Arcan is launched in memory-conservative mode, a local copy will not be kept in memory. Thus, any context switches, external_launch or image statistics functions may force the file to be reloaded. If a reload fails, the image is replaced with an error texture. 
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 08:55:35 -0000</pubDate><guid>https://sourceforge.net9872fbdc751bff7907660304b5ee844245c05271</guid></item></channel></rss>