1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
package typedefs
// Crop defines a crop specification.
type Crop struct {
// The number of pixels cropped off the bottom of the object before
// scaling.
Bottom int `json:"bottom,omitempty"`
// The number of pixels cropped off the left of the object before
// scaling.
Left int `json:"left,omitempty"`
// The number of pixels cropped off the right of the object before
// scaling.
Right int `json:"right,omitempty"`
// The number of pixels cropped off the top of the object before
// scaling.
Top int `json:"top,omitempty"`
}
|