Cropping and Resizing Images

Tim Lavers · Apress eBooks · 2021

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 class, but with the transformations introduced in the last couple of chapters removed.

Read the paper · More papers on PaperTik