Hi,

I want to resize the figure window to the size of an image being displayed  
(not bigger than the screen ofc) but having (bad) surprises because I get  
something else than required.

For example, this piece of code clearly shows that the size requested is  
not being respected.
This is Julia code but understandable, I think

t = @sprintf("%dx%d", img.width, img.height)
@show(t)
IupSetAttribute(iup_canvas, "RASTERSIZE", t)
@show(bytestring(IupGetAttribute(iup_canvas, "RASTERSIZE")))

and the display is

t = "430x300"
bytestring(IupGetAttribute(iup_canvas,"RASTERSIZE")) = "414x168"


Joaquim

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to