i try to update a juce 5 project to the version 6, and i am facing some basic problems.
Basically, i have a single background image that is located in a sub-folder (/ui), as i want to be able to modify the image externally (themed skin).
my old code looks like this:
File bgImageFile = File::getCurrentWorkingDirectory().getChildFile("./ui/myBG.png");
background = ImageCache::getFromFile(bgImageFile);
g.drawImageAt(background, 0, 0);
in PluginEditor.h: (in private)
Right, this code works perfectly, as i can open this plugin made with juce 5 and see the background image
Now, i am trying to do the same with juce 6, and i got a lot of errors…
“Image” doesnt work the same way ?