How to draw pixel at specific location on the buffer?

I was thinking of the least lines for drawing a pixel at specific scale of output window.

And I think I concluded to these lines, would you agree with me ?

PImage img;

void setup() {
  size(1280, 640);
  background(255);
  img = createImage(1,1,RGB);
  scale(10);
  img.loadPixels();
  image(img, 10, 0);
}

Can I minimize the code more ?