1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java Tue Feb 11 10:48:24 2014 +0100
1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java Wed Feb 12 08:43:07 2014 +0100
1.3 @@ -61,6 +61,11 @@
1.4 return src;
1.5 }
1.6
1.7 + /**
1.8 + * get the width of this Image. Might be an expensive operation, depending on the
1.9 + * GraphicsEnvironment, it might need to be rendered.
1.10 + * @return the width of this Image.
1.11 + */
1.12 public int getWidth() {
1.13 ServiceLoader<GraphicsEnvironment> loader = ServiceLoader.load(GraphicsEnvironment.class);
1.14 GraphicsEnvironment ge = null;
1.15 @@ -71,7 +76,11 @@
1.16 return ge.getWidth(this, cached);
1.17 }
1.18
1.19 -
1.20 + /**
1.21 + * get the height of this Image. Might be an expensive operation, depending on the
1.22 + * GraphicsEnvironment, it might need to be rendered.
1.23 + * @return the height of this Image.
1.24 + */
1.25 public int getHeight() {
1.26 ServiceLoader<GraphicsEnvironment> loader = ServiceLoader.load(GraphicsEnvironment.class);
1.27 GraphicsEnvironment ge = null;