<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Convert Thumbnail to image in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-thumbnail-to-image/m-p/7870640#M82257</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Thumbnail is in IPictureDisp format, and the picturebox requires an image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can it be converted?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The sugestion found on the fourms to use VB6 does not seem to work anymore. (removed because obsolete, and not compatible with 64 bit system)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the addin template there is the image converter that converts from image to IPictureDisp but not the inverse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 08:25:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-21T08:25:12Z</dc:date>
    <item>
      <title>Convert Thumbnail to image</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-thumbnail-to-image/m-p/7870640#M82257</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Thumbnail is in IPictureDisp format, and the picturebox requires an image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can it be converted?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The sugestion found on the fourms to use VB6 does not seem to work anymore. (removed because obsolete, and not compatible with 64 bit system)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the addin template there is the image converter that converts from image to IPictureDisp but not the inverse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 08:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-thumbnail-to-image/m-p/7870640#M82257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T08:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Thumbnail to image</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-thumbnail-to-image/m-p/7870879#M82263</link>
      <description>&lt;P&gt;Solved with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public NotInheritable Class IPictureDispConverter : Inherits System.Windows.Forms.AxHost

        Private Sub New()

            MyBase.New("")

        End Sub


        Public Shared Function ImageToPictureDisp(image As Image) As IPictureDisp

            Try

                Return DirectCast(GetIPictureDispFromPicture(image), IPictureDisp)

            Catch ex As Exception

                'Add error message or logging here if desired.

                'Handle the conversion error by simply returning Nothing.

                Return Nothing

            End Try

        End Function



        Public Shared Function PictureDispToImage(pictureDisp As IPictureDisp) As Image

            Try

                Return GetPictureFromIPicture(pictureDisp)

            Catch ex As Exception

                'Add error message or logging here if desired.

                'Handle the conversion error by simply returning Nothing.

                Return Nothing

            End Try

        End Function

    End Class&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:13:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-thumbnail-to-image/m-p/7870879#M82263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T10:13:17Z</dc:date>
    </item>
  </channel>
</rss>

