[Scilab-users] gui2bitmap 1.2 is released

P M p.muehlmann at gmail.com
Fri Aug 9 09:56:47 CEST 2019


Hi Samuel,

I confirm:
- test with Win10 Laptop
- screen resolution 1920 x 1080 px
- screen scale factor 100 & 125%

using:

gui2bitmap("setScale", 100);  // 125 respectively
gui2bitmap("setBorders", [%F %F %F]);gui2bitmap(f, pathName, %t)   //
with no borders left, bottom, right

results in a correct screen shot image.

Thanks, great work.
Philipp

Am Fr., 9. Aug. 2019 um 04:53 Uhr schrieb Samuel Gougeon <sgougeon at free.fr>:

> This release should answer to display-scaling issues encountered by Ted &
> Philipp.
>
> Regards
> Samuel
>
> https://atoms.scilab.org/toolboxes/gui2bitmap
>
> 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
>
>
>
> Le 02/08/2019 à 14:29, Samuel Gougeon a écrit :
>
> Hello,
>
> I am glad to announce the first release of the *gui2bitmat* package :
> https://atoms.scilab.org/toolboxes/gui2bitmap
>
> gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp bitmap image
> any graphical figure or User Interface with interactive components
> (uicontrols).
> An option allows to get the image of the full window, including its
> border/frame (with its menus bar, tools bar, status bar, and other bars ;-)
>
> It is a stand-alone function (no thirdparty needed), easy to use and easy
> to maintain
> (no hard code to recompile from a Scilab version to next ones).
>
> It is tested on Windows, but it should run as well on Linux and MacOS.
> It is fully documented.
>
> Enjoy.
> Samuel
>
> -----------------------
> gui2bitmap
> get a bitmap image of a graphical figure or interface, including its
> uicontrols, nay window borders
>
> SYNTAXES
> --------
> gui2bitmap(idFig, filename)
> gui2bitmap(idFig, filename, withBorders)
>
> idFig      : handle of the figure
> filename   : pathname to the output image file
> withBorders: boolean
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190809/129fec84/attachment.htm>


More information about the users mailing list