Description

Crop creates a filter that crops the specified rectangular region from an image.

Example:

g := gift.New(
	gift.Crop(image.Rect(100, 100, 200, 200)),
)
dst := image.NewRGBA(g.Bounds(src.Bounds()))
g.Draw(dst, src)

Crop is referenced in 4 repositories

github.com/disintegration/gift github.com/carpedm20/FoodClassifier github.com/keighl/gypsy-cab

...