I'm not quite sure this is the right forum to post my question. It's been a while since I visited these fora and there used to be a forum specifically for Java 2D topics, but I can't seem to find it. So I'll post it here and hope I guessed right.
I was wondering about some drawing issue I had some time ago. I made an application using a custom, rather complex, backgroundimage and it started up pretty slow because it needed to load and draw the image. And I was wondering if it would be faster and more memory-efficient if in stead of using the drawImage()-method one used 'native' drawing code. You could make a program that reads an image and, using the provided array of data, puts together a sequence of drawing instructions like drawPoint with specified color or drawLine with the correct color so that the image generated from this block of code is exactly the same as the image from the resourcefile. And so my question is if this would be preferable to using the drawImage-method, if it would be faster and more memory-efficient (seeing that the code to do this would probably be a lot smaller than the actual imagefile and you also wouldn't need a load-buffer)?