MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Flatten

Method Flatten

vips/vips.go:696–705  ·  view source on GitHub ↗
(bg color.RGB)

Source from the content-addressed store, hash-verified

694}
695
696func (img *Image) Flatten(bg color.RGB) error {
697 var tmp *C.VipsImage
698
699 if C.vips_flatten_go(img.VipsImage, &tmp, cRGB(bg)) != 0 {
700 return Error()
701 }
702 img.swapAndUnref(tmp)
703
704 return nil
705}
706
707func (img *Image) ApplyFilters(blurSigma, sharpSigma float64, pixelatePixels int) error {
708 var tmp *C.VipsImage

Callers 1

flattenMethod · 0.80

Calls 3

swapAndUnrefMethod · 0.95
cRGBFunction · 0.85
ErrorFunction · 0.70

Tested by

no test coverage detected