<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        No - I can&apos;t pass there byte[], &lt;br&gt;Method parameter is object so I need to pass an object        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        oh, sorry, it&apos;s an object, will try with byte[]        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        What is img defined as:&lt;br&gt;&lt;br&gt;Dim img;&lt;br&gt;&lt;br&gt;Object img;&lt;br&gt;&lt;br&gt;Byte img;&lt;br&gt;&lt;br&gt;???&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Unfortunately that seems to not be the case. &lt;br&gt;I tried both null and new byte[64000], previously it was not initialized as out parameter usually means &quot;I don&apos;t care what I get&quot;&lt;br&gt;In both cases exception is thrown that stream can not be initialize with null parameter.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        What is img defined as?&lt;br&gt;&lt;br&gt;Most likely the function is unable to place the more complicated image structure into the img variable. If img is null it should create the variable as single array of bytes (VT_ARRAY | VT_UI1) If the variable is already initialized to an object it will check that it is a single dimensional array of bytes and fill that.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Hi Steven&lt;br&gt;&lt;br&gt;Yes, one of examples did worked. But I&apos;m using it in Unity3D so can&apos;t copy it exactly. Working on WIndows x86 architecture.&lt;br&gt;&lt;br&gt;Code goes like this:&lt;br&gt;&lt;br&gt;roborealm.WaitImage();&lt;br&gt;int size = roborealm.GetImage(IMG_TYPE, out img, out width, out height, IMG_FORMAT);&lt;br&gt;byte[] image = (byte[])img;&lt;br&gt;MemoryStream stream;&lt;br&gt;try {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stream = new MemoryStream(image, 0, size);&lt;br&gt;} catch (Exception ex) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Debug.LogError(&quot;stream creation failed: &quot;+ex.Message);&lt;br&gt;}&lt;br&gt;&lt;br&gt;size, width, length makes sense, however exception is thrown by stream ctor that argument can not be null. So there is something wrong with GetImage().&lt;br&gt;&lt;br&gt;Best regards&lt;br&gt;A.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Adas,&lt;br&gt;&lt;br&gt;If you look in the API download in the CSharp folder you will see a JpegSetTest. In that code you will find&lt;br&gt;&lt;br&gt;object pixels, width, height;&lt;br&gt;int numBytes = rr.GetImage(&quot;source&quot;, out pixels, out width, out height, &quot;jpeg&quot;);&lt;br&gt;byte[] rgbArray = (byte[])pixels;&lt;br&gt;MemoryStream ms = new MemoryStream(rgbArray, 0, numBytes);&lt;br&gt;bm = new Bitmap(ms);&lt;br&gt;&lt;br&gt;which works using the most recent version of RR. Can you give that project a try? The download for all API examples is&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/downloads/API.zip&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;downloads/&lt;wbr&gt;API.zip&lt;/a&gt;&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;         </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Errata:&lt;br&gt;&lt;br&gt;It&apos;s not of length zero, it&apos;s null&lt;br&gt;Width and height are correct and are 640x480&lt;br&gt;d is variable from about 6k to 25k, what does makes sense.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Hi&lt;br&gt;&lt;br&gt; Yes, my fault, I was just tired, and posted something which didn&apos;t allow any reasonable answer, as there were no code.&lt;br&gt;&lt;br&gt;I&apos;m using C# wrapper.&lt;br&gt;&lt;br&gt;var roborealm = new API_WrapperClass();&lt;br&gt;int d = roborealm.GetImage(&quot;processed&quot;, out image, out width, out height, &quot;jpeg&quot;);&lt;br&gt;&lt;br&gt;GetImage() is returning some value, is outing width and height but image (byte[]) is of lenght 0.&lt;br&gt;&lt;br&gt;Annoying thing is that it&apos;s working in some of exemples provided by roborealm but not in all of them and not in my code.&lt;br&gt;&lt;br&gt;Workaround which I found is to use:&lt;br&gt;&lt;br&gt;roborealm.SaveImage(&quot;processed&quot;, &quot;filepath/fileneame&quot;)&lt;br&gt;&lt;br&gt;and read it from disk. &lt;br&gt;This works but it&apos;s obviously very hackish way to do it.&lt;br&gt;&lt;br&gt;Lot of thanks for your interest. &lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Adas,&lt;br&gt;&lt;br&gt;Can you post a quick snippet here of the code that you are using? For example, in CSharp one typically uses:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IntPtr hBitmap = (IntPtr)rr_connection.GetBitmap(&quot;processed&quot;);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (hBitmap.ToInt32() != 0)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (bmpToDisplay != null) bmpToDisplay.Dispose();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bmpToDisplay = Image.FromHbitmap(hBitmap);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DeleteObject(hBitmap);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;&lt;br&gt;to grab an image that can then be used within CSharp (from CSharp example).&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>GetImage in C# wrapper is borken</title>
        <description>
        Using API_WrapperClass in RR_APILib.dll&lt;br&gt;While using save image works perfectly fine (and I&apos;m able to get the data from disc) using get image with (out object image) param is always null. Howver method is returning number, probably correct one.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5795</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5795</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
