TrimColor

Structin imageoptocompute-sdk-go v1.11.0View source
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 is the color to trim

Threshold

float32

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).

Methods

func (t *TrimColor) String() string

Returns

string