<?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 logical units in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317398#M157698</link>
    <description>&lt;P&gt;On the screen,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I go from "logical coordinates" (function rectangle) to "logical units" (function strectchblt).&lt;/P&gt;
&lt;P&gt;thanks for the answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 08:38:42 GMT</pubDate>
    <dc:creator>jmloriot</dc:creator>
    <dc:date>2021-09-27T08:38:42Z</dc:date>
    <item>
      <title>logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317398#M157698</link>
      <description>&lt;P&gt;On the screen,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I go from "logical coordinates" (function rectangle) to "logical units" (function strectchblt).&lt;/P&gt;
&lt;P&gt;thanks for the answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 08:38:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317398#M157698</guid>
      <dc:creator>jmloriot</dc:creator>
      <dc:date>2021-09-27T08:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317431#M157703</link>
      <description>&lt;P&gt;I have to confess that, in the context of this forum (Fortran programming), I do not understand your question at all!&lt;/P&gt;
&lt;P&gt;Is it related to some graphics library or display system?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:08:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317431#M157703</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-09-27T12:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317450#M157707</link>
      <description>&lt;P&gt;In the context of graphical applications, I know of viewports, world coordinates and indeed device coordinates (pixels, if you like). Like mecej4, I have difficulty to understand your question. Could you tell us more about what you are doing? (Note: logical units in the context of Fortran are most often the numbers used to identify open files ...)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:38:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317450#M157707</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-09-27T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317453#M157708</link>
      <description>&lt;P&gt;In the Windows SDK you would need to look a SetMapMode and GetMapMode as you first need to know what the logical units are.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:51:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317453#M157708</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2021-09-27T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317455#M157710</link>
      <description>&lt;P&gt;HI mecej4&lt;/P&gt;
&lt;P&gt;I have the following program&lt;/P&gt;
&lt;P&gt;x=100&lt;/P&gt;
&lt;P&gt;y=100&lt;/P&gt;
&lt;P&gt;i=rectangle($gfillinterior,int2(x),int2(y),int2(x)+100),int2(y)+100)&lt;/P&gt;
&lt;P&gt;status=StretchBlt(hdcScreen,x,y,x+100,y+100,hDCCompatibleBitMap,1,1, bmp.bmWidth,bmp.bmHeight,SRCCOPY)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When executed on a screen, the upper left corner of the rectangle is not at the same position as the upper left corner of the bitmap image.&lt;/P&gt;
&lt;P&gt;And the difference is not the same on different screens.&lt;/P&gt;
&lt;P&gt;and I need them to be at the same position on all screens&lt;/P&gt;
&lt;P&gt;in the documentation it says&lt;/P&gt;
&lt;P&gt;strechtblt : x and y are n "logical units"&lt;/P&gt;
&lt;P&gt;rectangle : x and y are in "logical coordinates"&lt;/P&gt;
&lt;P&gt;I tried to relate "logical units" to the values of horsize and versize from getdevicecaps,&lt;/P&gt;
&lt;P&gt;but so far I have not been able to find how to calculate the x an y in logical units from the values in logical coordinates&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jean-Marc&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:54:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317455#M157710</guid>
      <dc:creator>jmloriot</dc:creator>
      <dc:date>2021-09-27T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317460#M157713</link>
      <description>&lt;P&gt;The code may be like that&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;          hdcCompatibleBitMap=createcompatibledc(hdcScreen)
          oldbmp=selectobject(hdcCompatibleBitMap,hbitmap)
          ibid=getobject(hbitmap,sizeof(bmp),loc(bmp))
          ibid=stretchblt(hdcScreen,x,y,x+100,y+100,
     s                    hdcCompatibleBitMap,0,0,bmp.bmwidth,bmp.bmheight,
     s                    SRCCOPY)
          ibid=deleteobject(selectobject(hdcCompatibleBitMap,oldbmp))
          ibid=deletedc(hdcCompatibleBitMap)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:05:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317460#M157713</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2021-09-27T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: logical units</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317473#M157716</link>
      <description>&lt;P class="sub_section_element_selectors"&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/66436"&gt;@jmloriot&lt;/a&gt;&amp;nbsp; noted :: And the difference is not the same on different screens.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;and I need them to be at the same position on all screens&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;--------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;If your user changes the scaling on the screen -&amp;nbsp; you can find it in settings, it makes windows forms do erratic things,&amp;nbsp; I spent most of the weekend fixing a program for this type of problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;As for a bitmap, that happens, sometimes you have trouble fixing it.&amp;nbsp; If you use a scaling technique on a bit map to zoom this is a common - unfixable end result.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 15:36:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/logical-units/m-p/1317473#M157716</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2021-09-27T15:36:37Z</dc:date>
    </item>
  </channel>
</rss>

