<?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: resize external image in ods layout in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/resize-external-image-in-ods-layout/m-p/106664#M22220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.rasteredge.com/how-to/csharp-imaging/resize-image/"&gt;auto- image reszing&lt;/A&gt; and image scaling with c# is quite familiar to me, dos layout is not, thank for sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 02:52:11 GMT</pubDate>
    <dc:creator>blackimage</dc:creator>
    <dc:date>2013-05-14T02:52:11Z</dc:date>
    <item>
      <title>resize external image in ods layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resize-external-image-in-ods-layout/m-p/106663#M22219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;Is there a way to automate re-sizing of images using ods layout?&lt;/P&gt;&lt;P&gt;Image urls are stored in a variable image_url in a sas data set, and contain links to images on the web. I am reading in image_url the following way: obj.image(file: strip(image_url),&amp;nbsp; and would like the image to be scaled down.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;data _null_;&amp;nbsp; &lt;/P&gt;&lt;P&gt;set r end=eof;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if _n_=1 then &lt;/P&gt;&lt;P&gt;do; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dcl odsout obj();&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; obj.layout_gridded(columns: 2 , &lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overrides: "just=left"); &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;obj.region(width: "2in", height:"1in"); &lt;/P&gt;&lt;P&gt;obj.format_text(data: '^{style [color=dagr fontsize=4&amp;nbsp; just=right]Available on} '||&lt;/P&gt;&lt;P&gt;'^{style [color=cx1b3564&amp;nbsp; fontsize=4 textdecoration=underline font_weight=bold just=right url="www.site.com"]Site Name}',&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overrides: "just=left width=100pct background=white fontsize=5 color=dagr ");&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;obj.image(file: strip(image_url),&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overrides: "just=left ");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; if eof ne 1 then&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; obj.format_text(data: " ");&lt;/P&gt;&lt;P&gt;else&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; obj.layout_end(); &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;renatasas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 22:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resize-external-image-in-ods-layout/m-p/106663#M22219</guid>
      <dc:creator>renatasas</dc:creator>
      <dc:date>2012-08-28T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: resize external image in ods layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resize-external-image-in-ods-layout/m-p/106664#M22220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.rasteredge.com/how-to/csharp-imaging/resize-image/"&gt;auto- image reszing&lt;/A&gt; and image scaling with c# is quite familiar to me, dos layout is not, thank for sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 02:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resize-external-image-in-ods-layout/m-p/106664#M22220</guid>
      <dc:creator>blackimage</dc:creator>
      <dc:date>2013-05-14T02:52:11Z</dc:date>
    </item>
  </channel>
</rss>

