javafx - Minimize picture size -
i have picture javafx application loaded +30 times chart. use code load , shrink size.
imageview liveperformicon = new imageview(mainapp.class.getresource("/images/untitledwdwd.png").toexternalform()); liveperformicon.setfitheight(100); liveperformicon.setfitwidth(100); label.setgraphic(liveperformicon);
can tell em how can optimize code performance , memory there way save resources during work.
maybe liveperformicon.setcache(true); can solve this?
load image once , use same image instance imageviews. example in imageview javadocs this.
Comments
Post a Comment