Mismatch among Screen Size from get(0) and java.awt.Toolkit.getDefaultToolkit().getScreenSize() with SurfacePro
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sofia Martin
el 28 de Dic. de 2015
Comentada: Sofia Martin
el 31 de Dic. de 2015
I am working with a SurfacePro, with Windows10, in which Matlab R2015b is working with Java 1.7.0_60-b19.
I need the size of the screen to scale properly the figure that I have to obtained. Due to I need very high resolution, I am using the SurfacePro, which has a size of 2736x1824 pixels.
However, if I do:
get(0)
the result obtained is:
CallbackObject: [...]
Children:[...]
CurrentFigure:[...]
...
MonitorPositions: [1 1 1368 912]
...
ScreenSize: [1 1 1368 912]
...
Units: 'pixels'
Which does not fit with the value of the system. But with
java.awt.Toolkit.getDefaultToolkit().getScreenSize()
the result is:
ans=
java.awt.Dimension[width=2736,height=1824]
what is the reason of this mismatch? how can I correct the value of get(0)? I need scrn = get(0,'ScreenSize') to work with the value of different screens.
Thanks!!
0 comentarios
Respuesta aceptada
Walter Roberson
el 28 de Dic. de 2015
Enabling or disabling high DPI support might make a difference; see http://www.mathworks.com/matlabcentral/answers/153254-matlab-scaling-issue-on-high-resolution-high-dpi-displays
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!