O'Reilly logo

Mastering openFrameworks: Creative Coding Demystified by Denis Perevalov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Images and Textures

It is often insufficient to create rich visualizations using only basic geometric primitives. Images are the building blocks that help in adding decoration, style, and even photorealism to an interactive scene. In this chapter we will cover the basic operations that we can perform on images:

  • Loading and drawing an image
  • Rotating images
  • Color modulation
  • Transparency
  • Creating and modifying images
  • Using ofTexture for memory optimization
  • Image warping and video mapping

Raster and vector images

In computer graphics and computer vision, an image is a two-dimensional picture that is used for a wide range of purposes. There are two classes – raster and vector images.

Raster images are rectangular arrays of picture elements (called ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required