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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users