java - jface.resource.ImageDescriptor - How to tell which kind of file properties will be properly displayed? -
i desperate.
i have following code in application load png files:
public static image loadimagefromlocal(class<?> clazz, string filename) { imagedescriptor imagedesc = imagedescriptor.createfromfile(clazz, filename); image image = imagedesc.createimage(); return image; }
so far until tried download files internet , load them using same logic. downloaded files not displayed. when apply swt program logic show original files, works fine.
i tried find out difference between files - correctly displayed of 8 bits , downloaded, nowadays, of course 32-bit color depth.
i had changed color depth of downloaded 32-bit 8-bit. nothing happens, program still not able correctly display them.
i tried change format of downloaded files jpg, still won't work.
which direction should go solve problem?
actually eclipse internal problem. works fine after delete , import project in eclipse again.
Comments
Post a Comment