Hi, i’ve problems loading jpgs and bmps. I’m pretty confussed with ImageFileFormat, JPEGImageFormat, Image, ImageCache and Drawable image… I don’t achieve load a single image!
Please, would you mind write and small code how should I load a simple c:\image.jpg file to be showed in a drawable image class?
You’d just call Image::loadFromFile (“c:\image.jpg”)… I can’t really see how I could possibly have made that any easier! If you grep for “Image::loadFromFile”, there must be plenty of examples in the demo code.
To get it into a drawable, just create a new DrawableImage, and call its setImage() method… Again, if you can think of any way I could make it more obvious, please let me know!
BTW, createFromImageFile is a static method that returns the created object, and BMPs aren’t supported anyway: please move to PNGs and let the awful BMP format die like it should have done 10 years ago…
Yes, it’s a good idea, but I need that user can choose the background image. Jucer include the default image in the project, and it cannot be resizable!