public int getImageId() {
        return texture.getImage().getId();
    }
Gets the native id of the image belonging to the underlying texture.

@return
jme3-core/src/main/java/com/jme3/texture/TextureImage.java