diff -r 03cd1b3e2e70 -r 493cae4fd458 javaquery/canvas/src/main/java/net/java/html/canvas/Image.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java Tue Feb 11 10:48:24 2014 +0100 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java Wed Feb 12 08:43:07 2014 +0100 @@ -61,6 +61,11 @@ return src; } + /** + * get the width of this Image. Might be an expensive operation, depending on the + * GraphicsEnvironment, it might need to be rendered. + * @return the width of this Image. + */ public int getWidth() { ServiceLoader loader = ServiceLoader.load(GraphicsEnvironment.class); GraphicsEnvironment ge = null; @@ -71,7 +76,11 @@ return ge.getWidth(this, cached); } - + /** + * get the height of this Image. Might be an expensive operation, depending on the + * GraphicsEnvironment, it might need to be rendered. + * @return the height of this Image. + */ public int getHeight() { ServiceLoader loader = ServiceLoader.load(GraphicsEnvironment.class); GraphicsEnvironment ge = null;