<?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 Get image transparent background color? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-image-transparent-background-color/m-p/6987990#M32020</link>
    <description>&lt;P&gt;I have a jpg&amp;nbsp;attached, and the transparent color is set to black:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blk.jpg" style="width: 431px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339927i0CE634B21BA362DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="blk.jpg" alt="blk.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oddly, I just realized only civil3d has that property available.&lt;/P&gt;
&lt;P&gt;So I opened the quickwatch in visual studio on the raster object and happened to expand the xdata item.&lt;/P&gt;
&lt;P&gt;Look what I found!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xdata.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339929i90E9BD9AEC1C15D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="xdata.jpg" alt="xdata.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you believe it, adesk is using xdata for the transparency color, whoohooo!&lt;/P&gt;
&lt;P&gt;What a fluke I found that. The 0 is black, but is a different number if you select some pixel in the image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Guess I answered my own question while writing this.&lt;/P&gt;
&lt;P&gt;Not sure why vanilla acad seems to be missing the property in browser, the xdata is still there though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xdata is a bit easy to erase on accident, but honestly I would rather they add new features this way than modifying the core entity definition and force new dwg version.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 18:14:45 GMT</pubDate>
    <dc:creator>JamesMaeding</dc:creator>
    <dc:date>2017-03-31T18:14:45Z</dc:date>
    <item>
      <title>Get image transparent background color?</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-image-transparent-background-color/m-p/6987990#M32020</link>
      <description>&lt;P&gt;I have a jpg&amp;nbsp;attached, and the transparent color is set to black:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blk.jpg" style="width: 431px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339927i0CE634B21BA362DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="blk.jpg" alt="blk.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oddly, I just realized only civil3d has that property available.&lt;/P&gt;
&lt;P&gt;So I opened the quickwatch in visual studio on the raster object and happened to expand the xdata item.&lt;/P&gt;
&lt;P&gt;Look what I found!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xdata.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339929i90E9BD9AEC1C15D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="xdata.jpg" alt="xdata.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you believe it, adesk is using xdata for the transparency color, whoohooo!&lt;/P&gt;
&lt;P&gt;What a fluke I found that. The 0 is black, but is a different number if you select some pixel in the image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Guess I answered my own question while writing this.&lt;/P&gt;
&lt;P&gt;Not sure why vanilla acad seems to be missing the property in browser, the xdata is still there though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xdata is a bit easy to erase on accident, but honestly I would rather they add new features this way than modifying the core entity definition and force new dwg version.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 18:14:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-image-transparent-background-color/m-p/6987990#M32020</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2017-03-31T18:14:45Z</dc:date>
    </item>
  </channel>
</rss>

