File: crop.go

package info (click to toggle)
golang-github-andreykaipov-goobs 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,228 kB
  • sloc: makefile: 32
file content (20 lines) | stat: -rw-r--r-- 542 bytes parent folder | download
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"`
}