<?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: ODS Graphics problem with transparent background in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285729#M10128</link>
    <description>Had time to explore other options in the graphics package I used to create the test image with and it told me I had no transparent layer.  Oops.  I've now created one and will test it.

--Ben</description>
    <pubDate>Wed, 20 Jul 2016 03:59:08 GMT</pubDate>
    <dc:creator>BenConner</dc:creator>
    <dc:date>2016-07-20T03:59:08Z</dc:date>
    <item>
      <title>ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285628#M10119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone successfully brought in an external gif/png image with a transparent background and gotten it to work as expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an ODS LAYOUT region with a colored background, and tried to drop a png image file on to it that has a transparent background.&amp;nbsp; I want the underneath layer to show through the transparent part.&amp;nbsp; Target is a PDF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if it is the .png file or what I'm doing in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285628#M10119</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-19T20:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285638#M10120</link>
      <description>&lt;P&gt;It might help to show the code you have that involves the ODS statement and the procedure(s) that reference the PNG file so we have some details to discuss to consider.&lt;/P&gt;
&lt;P&gt;Also the version of SAS you are running might be a factor.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 21:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285638#M10120</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-19T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285640#M10121</link>
      <description>&lt;P&gt;It depends on what procedures you are using for graphics. &amp;nbsp;Here are many examples using transparent images with SGPLOT procedure: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=transparent+images" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=transparent+images&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 21:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285640#M10121</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-07-19T21:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285647#M10122</link>
      <description>&lt;P&gt;I was running a sample program:&lt;/P&gt;
&lt;P&gt;dm 'clear log';&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;BR /&gt;ods PDF file="&amp;amp;path.test.pdf" notoc;&lt;/P&gt;
&lt;P&gt;ods layout absolute y=.25in x=.25in&amp;nbsp; width=10.5in height=8in style={background=green};&lt;/P&gt;
&lt;P&gt;ods region width=10in height=7in;&lt;BR /&gt;ods text = "^{style[background=blue postimage='&amp;amp;impath.test.png'].}";&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the attached test.png; orientation was landscape.&amp;nbsp; Was expecting the cyan hexagon to have a green background and the surrounding rectangle to be either blue or green.&amp;nbsp; It was magenta, which was the color I had tried to set to transparent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12767i872A7DE17FBA6EBA/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="test.png" title="test.png" /&gt;</description>
      <pubDate>Tue, 19 Jul 2016 21:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285647#M10122</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-19T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285649#M10123</link>
      <description>&lt;P&gt;Oh..am on 9.4 TS1M3.&amp;nbsp; Sorry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---Ben&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 21:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285649#M10123</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-19T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285663#M10124</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4784"&gt;@BenConner&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the attached test.png; orientation was landscape.&amp;nbsp; Was expecting the cyan hexagon to have a green background and the surrounding rectangle to be either blue or green.&amp;nbsp; It was magenta, which was the color I had tried to set to transparent.&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Perhaps the plot thickens: How did you attempt to set the magenta to transparent? Does that image appear transparent when viewing it in other applications or viewers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/14220221/how-to-insert-transparent-png-in-pdf" target="_blank"&gt;http://stackoverflow.com/questions/14220221/how-to-insert-transparent-png-in-pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;may shed some light in general about PNG, transparency and PDF.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 22:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285663#M10124</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-19T22:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285665#M10125</link>
      <description>&lt;P&gt;Interesting post.&amp;nbsp; So apparently png files aren't natively compatible with PDF files.&amp;nbsp; How about gifs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 22:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285665#M10125</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-19T22:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285729#M10128</link>
      <description>Had time to explore other options in the graphics package I used to create the test image with and it told me I had no transparent layer.  Oops.  I've now created one and will test it.

--Ben</description>
      <pubDate>Wed, 20 Jul 2016 03:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285729#M10128</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-20T03:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285730#M10129</link>
      <description>Hm.  Updating the test image didn't work either.  Will continue to investigate it.

--Ben</description>
      <pubDate>Wed, 20 Jul 2016 04:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285730#M10129</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-20T04:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics problem with transparent background</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285858#M10130</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does appear it was an issue with how the transparency layer was defined in the image.&amp;nbsp; Used a different graphics package that I know better and it worked as advertised.&amp;nbsp; Including as a .png file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the confusion!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-problem-with-transparent-background/m-p/285858#M10130</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-07-20T16:20:01Z</dc:date>
    </item>
  </channel>
</rss>

