<?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: Image rotation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592566#M79654</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Names Default To Here( 1 );
New Window( "Example", pb = Picture Box( Open( "$SAMPLE_IMAGES/tile.jpg", jpg ) ) );
pb &amp;lt;&amp;lt; rotate left;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1674559046975.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49394iFDB5FDFC4A675842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1674559046975.png" alt="txnelson_0-1674559046975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 11:17:35 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-01-24T11:17:35Z</dc:date>
    <item>
      <title>Image rotation</title>
      <link>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592557#M79653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I cannot rotate an image. The script in the "Scripting Index" is also not rotating the image.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example", pb = Picture Box( Open( "$SAMPLE_IMAGES/tile.jpg", jpg ) ) );
image = pb &amp;lt;&amp;lt; Get Image();
image &amp;lt;&amp;lt; rotate left;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:41:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592557#M79653</guid>
      <dc:creator>TWE</dc:creator>
      <dc:date>2023-06-08T16:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Image rotation</title>
      <link>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592566#M79654</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Names Default To Here( 1 );
New Window( "Example", pb = Picture Box( Open( "$SAMPLE_IMAGES/tile.jpg", jpg ) ) );
pb &amp;lt;&amp;lt; rotate left;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1674559046975.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49394iFDB5FDFC4A675842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1674559046975.png" alt="txnelson_0-1674559046975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 11:17:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592566#M79654</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-01-24T11:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Image rotation</title>
      <link>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592570#M79655</link>
      <description>&lt;P&gt;Cool. There is something broken about the scripting index example though... (edit: sent note to dev team)&lt;/P&gt;
&lt;P&gt;Before I saw Jim's answer, I modified the example a different way:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Use &amp;lt;&amp;lt;rotate(-90) and then show the new image in a separate window." style="width: 987px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49395i7D8552C3832A4E33/image-size/large?v=v2&amp;amp;px=999" role="button" title="rotate.PNG" alt="Use &amp;lt;&amp;lt;rotate(-90) and then show the new image in a separate window." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Use &amp;lt;&amp;lt;rotate(-90) and then show the new image in a separate window.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 11:36:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592570#M79655</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-01-24T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Image rotation</title>
      <link>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592666#M79662</link>
      <description>&lt;P&gt;I agree that there is an issue with the Scripting Index - the way I look at the code is that in one you get a handle to the Picture Box object and in the other you get a handle to the image. So rotating the image doesn't matter until you then display it as you showed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you put a "Wait (1);" in&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;code before the "pb &amp;lt;&amp;lt; rotate left;" line, you will see the image displayed and then rotated in place.&lt;/P&gt;&lt;P&gt;Thanks for your answers - not something I have tripped over yet, but would have soon!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:29:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-rotation/m-p/592666#M79662</guid>
      <dc:creator>andersonmj2</dc:creator>
      <dc:date>2023-01-24T15:29:11Z</dc:date>
    </item>
  </channel>
</rss>

