Background picture


#1

Hi, I am fairly new to Juce and I’m kinda stuck at the moment. For my interface, I would like to display a particular background picture. I’ve already uploaded it using getFromFile and everything’s ok, is.Valid is true. Trouble is I don’t know what function to use next. Any help would be much appreciated.


#2
void yourComponent::paint( Graphics& g )
{
    g.drawImage( yourImage, 0, 0, getWidth(), getHeight(), 0, 0, yourImage.getWidth(), yourImage.getHeight(), false );
}

#3

It worked, thanks!