<div dir="ltr"><div>one hint....</div><div><br></div><div>what is the scale factor of your screen setting....mine was set to 125%</div><div>I try to freely translate from German windows to english<br></div><div>-> right click on desktop</div><div> -> Display setting (or something like this..second from the bottom)</div><div>-> change size of text, Apps and other elements<br></div><div><br></div><div>back to 100% and the image looks different</div><div>still there are pixels around the GUI from the background, but at least the complete figure is screen shotted<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 6. Aug. 2019 um 10:33 Uhr schrieb P M <<a href="mailto:p.muehlmann@gmail.com">p.muehlmann@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Ted,</div><div><br></div><div>I confirm the issue you describe with:</div><div><br></div><div>- DELL Laptop</div><div>- Win 10</div><div>- screen resolution: 1920 x 1080</div><div>- Scilab 6.0.2</div><div><br></div><div>following code gives the result in attachment:</div><div><br></div><div><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(50,185,185)">clc</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(50,185,185)">clear</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(100,174,100);font-style:italic">// Generate a nice GUI (from demos)</span>
<span style="color:rgb(50,185,185)">exec</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">SCI/modules/gui/demos/uicontrol_plot3d.dem.sce</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(92,92,92)">-</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(100,174,100);font-style:italic">//</span>
<span style="color:rgb(0,0,0)">f</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(174,92,176);text-decoration:underline">gcf</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">f</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">figure_size</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">1300</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">780</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">f</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">figure_position</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">125</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">25</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(50,185,185)">sleep</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">500</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">figGUI</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">TMPDIR/gui2bitmap/gui2bitmap.png</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(100,174,100);font-style:italic">// Export the window</span>
<span style="color:rgb(174,92,176);text-decoration:underline">gui2bitmap</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">f</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">figGUI</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(218,112,214)">%t</span><span style="color:rgb(74,85,219)">)</span>   <span style="color:rgb(100,174,100);font-style:italic">// with window borders</span>
<span style="color:rgb(50,185,185)">disp</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">f</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span></pre></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Am Di., 6. Aug. 2019 um 06:11 Uhr schrieb P M <<a href="mailto:p.muehlmann@gmail.com" target="_blank">p.muehlmann@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div dir="ltr"><div>Hi Ted,</div><div><br></div><div>please confirm: <br></div><div>- your screen is: 1920 x 1080  <br></div><div>- The GUI position is 125,25<br>
- The GUI size is 1300 x 780...including borders and menu bars</div><div>.... so if:</div><div>.... f = handle of your figure</div><div>.... than:</div><div>.... f.position = [125, 25 , 1300, 780]  ??<br></div><div><br></div><div>- The resulting image from gui2bitmap shows the GUI in a false way  (Background is visible at left and top border)?</div><div><br></div><div>BR</div><div>Philipp<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Am Mo., 5. Aug. 2019 um 20:28 Uhr schrieb VTX1801 <<a href="mailto:sl1800@rochester.rr.com" target="_blank">sl1800@rochester.rr.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)">Samuel,<br>
Windows 10 OS.<br>
The screen resolution of my laptop is set to 1920x1080.<br>
I still see the problems after atomsUpdate("gui2bitmap").<br>
<br>
The GUI is completely inside the screen. <br>
With about 1/4" gap above and below and about 1 inch on either side.<br>
<br>
The GUI appears to grow 1/4 inch only to the right side and down directions<br>
when gui2bitmap is executed.<br>
The resulting gui2bitmap look zoomed in and loses 3 inches from the right<br>
side and an inch or more from the bottom.<br>
<br>
Additionally, the area to the left and above the gui2bitmap screen capture<br>
shows the background of what was behind the GUI.<br>
<br>
I executed the following command atomsUpdate("gui2bitmap"), and restarted<br>
Scilab.<br>
No difference.<br>
<br>
Willing to redesign the GUI. How to make the graph area smaller with the<br>
same size uicontrols to result in slightly smaller GUI size?<br>
<br>
Lastly, tested using Snipping Tool software with mode set for window<br>
capture.<br>
Click on the GUI window and the complete GUI window appears in the Snipping<br>
Tool window with an all white background.<br>
<br>
Unfortunately, printing results with image printed on two sheets with<br>
printer basic preferences orientation set to "landscape" and advanced<br>
preferences scaling set to "fit to paper size".<br>
Vertical size fits the paper sheet but additional 2.6 inches on the second<br>
paper sheet.<br>
<br>
Very frustrating.<br>
<br>
Please advise,<br>
Ted<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" rel="noreferrer" target="_blank">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>