Structin imageoptocompute-sdk-go v1.11.0View source
type Crop struct {
Size Area
Mode CropMode
}

Crop removes pixels from an image.

Fields

Size

Area

Size is the desired width and height.

Position

*Position

Position is the offset for determining the starting position of the cropped region.

Mode is the crop mode to use.

Methods

func (c *Crop) String() string

Returns

string