public int getDepth() {
        return depth;
    }
<code>getDepth</code> returns the depth of this image (for 3d images).

@return the depth of this image.
jme3-core/src/main/java/com/jme3/texture/Image.java