<?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_asynch</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/</link><description>Recent changes to load_image_asynch</description><atom:link href="https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 21 Jun 2012 20:23:56 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage load_image_asynch modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -25,7 +25,7 @@
 ~~~~
 
 **related functions:**
-[load_image_async]
+[load_image_asynch]
 
 **caveats:**
 Same as [load_image], but also that there's no argument for specifying order, [order_image] have to be called explicitly. Before the callback has been called the first time, surface storage properties are undefined.
&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 20:23:56 -0000</pubDate><guid>https://sourceforge.net5f70df412666efb668a6d330d876396bca73ca9c</guid></item><item><title>WikiPage load_image_asynch modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-**definition:**
+**declaration:**
 
 ~~~~
 load_image_asynch(resource, [callback] ) =&gt; 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 10:50:12 -0000</pubDate><guid>https://sourceforge.net39ec05be823f3f953268c648ee0b7398e627d873</guid></item><item><title>WikiPage load_image_asynch modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/load_image_asynch/</link><description>**definition:**

~~~~
load_image_asynch(resource, [callback] ) =&gt; VID
~~~~

Loads a resource as an image asynchronously. If a [callback] function is specified, otherwise a video_event will be emitted, it will be invocated when the image status is changed -- either loaded or failed. 

The callback function is expected to look like:

~~~~
function imageload_cb(sourcevid, statustbl)
    statustbl.kind == "load_failed" or "loaded"
    statustbl.width == image actual width
    statustbl.height == image actual height
end

**example use:**

~~~~
vid = load_image_asynch(resource, function(source, statuslbl)
    if 
);
show_image(vid);
~~~~

**related functions:**
[load_image_async]

**caveats:**
Same as [load_image], but also that there's no argument for specifying order, [order_image] have to be called explicitly. Before the callback has been called the first time, surface storage properties are undefined.

Some functions, like an external launch, may force an asynchronous push, forcing the image to load fully before proceeding.

Any error that would have forced [load_image] to return BADID, will result in a blank (32x32) texture.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Sat, 16 Jun 2012 09:14:03 -0000</pubDate><guid>https://sourceforge.net251741d3c08bfd3ea47e64ae1bf09177c69fd41a</guid></item></channel></rss>