crop: Crop image

Description Usage Arguments Value Examples

Description

Crop image

Usage

1
crop(im, left = 0, top = 0, right = 0, bottom = 0)

Arguments

im

An image object of package Magick.

left

Number of pixels to crop to the left

top

Number of pixels to crop to the top

right

Number of pixels to crop to the right

bottom

Number of pixels to crop to the bottom

Value

An image object of package Magick of reduced or equal size.

Examples

1
2
plot(im0 <- magick::image_read("https://goo.gl/nRQi5n"))
plot(crop(im0, top = 200))

privefl/pixelart documentation built on May 29, 2019, 7:39 a.m.