File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
jme3-core/src/main/java/com/jme3/ui Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2009-2020 jMonkeyEngine
2+ * Copyright (c) 2009-2023 jMonkeyEngine
33 * All rights reserved.
44 *
55 * Redistribution and use in source and binary forms, with or without
@@ -86,6 +86,24 @@ public Picture(String name){
8686 protected Picture (){
8787 }
8888
89+ /**
90+ * Return the height of the picture.
91+ *
92+ * @return the height (in pixels)
93+ */
94+ public float getHeight () {
95+ return height ;
96+ }
97+
98+ /**
99+ * Return the width of the picture.
100+ *
101+ * @return the width (in pixels)
102+ */
103+ public float getWidth () {
104+ return width ;
105+ }
106+
89107 /**
90108 * Set the width in pixels of the picture, if the width
91109 * does not match the texture's width, then the texture will
You can’t perform that action at this time.
0 commit comments