© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
T. LaversLearn to Program with Kotlinhttps://doi.org/10.1007/978-1-4842-6815-5_15

15. Pixel Transformations

Tim Lavers1  
(1)
Woonona, NSW, Australia
 

In the previous chapter, we introduced a model for on-screen images that allowed us to load them from files and to change them by moving their pixels around. In this chapter, we will modify images by changing the colors of individual pixels.

To get started, create a new project in IntelliJ from this repository: https://github.com/Apress/learn-to-program-w-kotlin-ch15.git. The downloaded code is much the same as at the end of the previous chapter, but some extra image files are included, and the Flag class has been ...

Get Learn to Program with Kotlin: From the Basics to Projects with Text and Image Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.