View definition

func Crop(img Image, rect Rectangle) *NRGBA

Defined in github.com/disintegration/imaging/tools.go

Description

Crop cuts out a rectangular region with the specified bounds from the image and returns the cropped image.