<div dir="ltr"><div>Hi Samuel,</div><div><br></div><div>I confirm:</div><div>- test with Win10 Laptop <br></div><div>- screen resolution 1920 x 1080 px<br></div><div>- screen scale factor 100 & 125%</div><div><br></div><div>using:<br></div><div><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)"><span style="color:rgb(0,0,0)">gui2bitmap</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">setScale</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">100</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">// 125 respectively<br><span style="color:rgb(0,0,0)">gui2bitmap</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">setBorders</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(218,112,214)">%F</span> <span style="color:rgb(218,112,214)">%F</span> <span style="color:rgb(218,112,214)">%F</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)">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)">pathName</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 no borders left, bottom, right</span></span></span><span style="color:rgb(0,0,0)"></span></pre></div><div>results in a correct screen shot image.</div><div><br></div><div>Thanks, great work.
</div><div>Philipp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 9. Aug. 2019 um 04:53 Uhr schrieb Samuel Gougeon <<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</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 bgcolor="#FFFFFF">
<p>This release should answer to display-scaling issues encountered
by Ted & Philipp.</p>
<p>Regards<br>
Samuel<br>
</p>
<div class="gmail-m_8826808812840813248moz-cite-prefix">
<pre style="color:rgb(91,89,80);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><a class="gmail-m_8826808812840813248moz-txt-link-freetext" href="https://atoms.scilab.org/toolboxes/gui2bitmap" target="_blank">https://atoms.scilab.org/toolboxes/gui2bitmap</a>
CHANGES 1.1 => 1.2
==================
* "setMenu", "setScale" and "setBorders" syntaxes added.
* gui2bitmap() now works as well on Linux (and MacOS X: not tested)
* Unit tests added.
* Tested on Windows 7 1920x1080 (with scale = 100|125|150%), 1600x900, 1280x720
* Tested on Linux Fedora 24
SYNTAXES
--------
gui2bitmap(idFig, filename)
gui2bitmap(idFig, filename, withBorders)
gui2bitmap("setMenu", parentHandle)
gui2bitmap("setBorders", borders)
gui2bitmap("setScale", scale)
with:
idFig : handle of the figure
filename : pathname to the output image file
withBorders: boolean
borders : vector of 3 booleans
[left_border, bottom_border, right_border]
scale : Screen display zoom factor, in percentage
</pre>
<br class="gmail-m_8826808812840813248Apple-interchange-newline">
</div>
<div class="gmail-m_8826808812840813248moz-cite-prefix">Le 02/08/2019 à 14:29, Samuel Gougeon a
écrit :<br>
</div>
<blockquote type="cite">
<p>Hello, <br>
</p>
<p> I am glad to announce the first release of the <i>gui2bitmat</i>
package :<br>
<a class="gmail-m_8826808812840813248moz-txt-link-freetext" href="https://atoms.scilab.org/toolboxes/gui2bitmap" target="_blank">https://atoms.scilab.org/toolboxes/gui2bitmap</a><br>
<br>
gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp
bitmap image<br>
any graphical figure or User Interface with interactive
components (uicontrols).<br>
An option allows to get the image of the full window, including
its<br>
border/frame (with its menus bar, tools bar, status bar, and
other bars ;-)<br>
<br>
It is a stand-alone function (no thirdparty needed), easy to use
and easy to maintain<br>
(no hard code to recompile from a Scilab version to next ones).<br>
<br>
It is tested on Windows, but it should run as well on Linux and
MacOS.<br>
It is fully documented.<br>
<br>
Enjoy.<br>
Samuel<br>
</p>
<p>-----------------------<br>
</p>
<div class="gmail-m_8826808812840813248atoms_toolbox_title" style="color:rgb(91,89,80);font-family:sans-serif;font-size:14.4px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">
<h1 style="color:rgb(95,95,95);font-family:Georgia,serif;font-size:1.4em;margin:10px 0px">gui2bitmap</h1>
</div>
<div style="color:rgb(91,89,80);font-family:sans-serif;font-size:14.4px;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;font-style:italic">get a bitmap image of a graphical figure or
interface, including its uicontrols, nay window borders<br>
<br>
<pre style="color:rgb(91,89,80);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">SYNTAXES
--------
gui2bitmap(idFig, filename)
gui2bitmap(idFig, filename, withBorders)
idFig : handle of the figure
filename : pathname to the output image file
withBorders: boolean
</pre>
</div>
</blockquote>
<br>
</div>
_______________________________________________<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>