I use lots of images in my project. I read them using an inputstream like that:
But creating each image (the second line) takes more than 200 miliseconds and most of the time, more than 300 miliseconds. How can I reduce that long time. Or can I use any other method. May be other function ??PHP Code:
Inputstream is = getClass().getResourceAsStream(path);
image = Image.createImage(is);
Thanks and regards.