Background image doesn't load

Hello @henk_lamers ,

Related post here:
Processing Java Background Bug - #2 by glv

Try:

  • Displaying image.
  • What is pixelDensity? Try setting it to 1
  • Use println() to display size of image after loading

Report back.

Reference:

This works on my W10 PC and loads an image from Wikipedia:

PImage BackgroundGradient;

void setup () {
  size (1000, 1000);
  smooth();
  noStroke ();

  // Load the background image
  BackgroundGradient = loadImage ("https://upload.wikimedia.org/wikipedia/commons/0/08/1000X1000-01.jpg");
}

void draw() {
  background (BackgroundGradient);
}

:)

1 Like