Skip to content

Commit ac4c763

Browse files
authored
solve issue #2015 (Picture class lacks 2 getters)
1 parent 165cb59 commit ac4c763

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

jme3-core/src/main/java/com/jme3/ui/Picture.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

0 commit comments

Comments
 (0)