© 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_16

16. Cropping and Resizing Images

Tim Lavers1  
(1)
Woonona, NSW, Australia
 

In the previous two chapters, we have transformed pictures by rearranging their pixels or by applying color transformations. Now we will look at operations that change the size of an image, either by extracting a sub-image or by merging pixels to produce a compressed version of the original. We will also look at how to save our transformed images to file. The code for this chapter can be obtained from https://github.com/Apress/learn-to-program-w-kotlin-ch16.git. This code contains our familiar Picture

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.