crop an image quiz

So what is the size of the cropped image?

Solution 

As before, let's use the size function.So it turns out to be 201 cross 151. Is that surprising? 

Why isn't it 200 cross 150? 

Let's look back at the range we selected, 110 through 310 and 10 through 160. Note that in both these ranges, the limits are inclusive. Which is why the first range, 110 through 310, includes 201 different rows. Similarly, 10 through 160 includes 151 different columns. Try to extract different parts of the image. What happens when your selected range goes out of bounds

Last modified: Saturday, 28 October 2023, 9:57 AM