TrimColor
type TrimColor struct { Color HexColor
Threshold float32}TrimColor identifies a rectangular border based on specified color and removes this / border from the edges of an image.
Fields
Color
HexColorColor is the color to trim
Threshold specifies how different a color can be from the given trim color and still be trimmed.
Valid values are 0 (exact color only) to 1 (trim everything).