<?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 Re: Saving NativeImage to a file in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384970#M905</link>
    <description>&lt;P&gt;You can create a GX::Image from a NewDisplay::NativeImage, and then save it to a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GX::Image textureImage (nativeImage);

FTM::GeneralID pngType = FTM::FileTypeManager::SearchForMime ("image/png", nullptr);
textureImage.WriteToFile (resultFileLocation, pngType);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 20:55:19 GMT</pubDate>
    <dc:creator>kovacsv</dc:creator>
    <dc:date>2023-06-22T20:55:19Z</dc:date>
    <item>
      <title>Saving NativeImage to a file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384858#M904</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Is there a way to save a NewDisplay::NativeImage into a file?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 08:22:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384858#M904</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-06-22T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Saving NativeImage to a file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384970#M905</link>
      <description>&lt;P&gt;You can create a GX::Image from a NewDisplay::NativeImage, and then save it to a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GX::Image textureImage (nativeImage);

FTM::GeneralID pngType = FTM::FileTypeManager::SearchForMime ("image/png", nullptr);
textureImage.WriteToFile (resultFileLocation, pngType);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 20:55:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384970#M905</guid>
      <dc:creator>kovacsv</dc:creator>
      <dc:date>2023-06-22T20:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Saving NativeImage to a file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384988#M906</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 02:30:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-NativeImage-to-a-file/m-p/384988#M906</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-06-23T02:30:38Z</dc:date>
    </item>
  </channel>
</rss>

