From: Michael G. <gof...@us...> - 2007-09-03 15:03:12
|
Update of /cvsroot/octave/octave-forge/extra/jhandles/src/org/octave/graphics In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2485/src/org/octave/graphics Modified Files: MarkerProperty.java Log Message: point -> pixel conversion of the marker size Index: MarkerProperty.java =================================================================== RCS file: /cvsroot/octave/octave-forge/extra/jhandles/src/org/octave/graphics/MarkerProperty.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- MarkerProperty.java 31 Aug 2007 15:04:00 -0000 1.5 +++ MarkerProperty.java 3 Sep 2007 12:20:30 -0000 1.6 @@ -153,6 +153,9 @@ public Marker makeMarker(double markerSize, double lineWidth) { + /* convert marker size from point size to pixel size */ + markerSize = (markerSize * Utils.getScreenResolution() / 72.0); + int size = (int)markerSize, size2 = (int)(markerSize/2); int size3 = (int)(markerSize/3), size23 = (int)((markerSize*2)/3); BufferedImage img = new BufferedImage(size, size, BufferedImage.TYPE_BYTE_BINARY); |