Chapter 15. Images

 

“Politics will eventually be replaced by imagery. The politician will be only too happy to abdicate in favor of his image, because the image will be much more powerful than he could ever be.”

 
 --Marshall McLuhan
 

“When it comes to pixels, I think I’ve had my fill. There are enough pixels in my fingers and brains that I probably need a few decades to digest all of them.”

 
 --John Maeda

In this chapter:

  • The PImage class.

  • Displaying images.

  • Changing image color.

  • The pixels of an image.

  • Simple image processing.

  • Interactive image processing.

A digital image is nothing more than data—numbers indicating variations of red, green, and blue at a particular location on a grid of pixels. Most of the time, we view these pixels as miniature rectangles ...

Get Learning Processing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.