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

Method SetIntSlice

vips/vips.go:535–541  ·  view source on GitHub ↗
(name string, value []int)

Source from the content-addressed store, hash-verified

533}
534
535func (img *Image) SetIntSlice(name string, value []int) {
536 in := make([]C.int, len(value))
537 for i, el := range value {
538 in[i] = C.int(el)
539 }
540 C.vips_image_set_array_int_go(img.VipsImage, cachedCString(name), &in[0], C.int(len(value)))
541}
542
543func (img *Image) SetDouble(name string, value float64) {
544 C.vips_image_set_double(img.VipsImage, cachedCString(name), C.double(value))

Callers 1

transformAnimatedMethod · 0.80

Calls 1

cachedCStringFunction · 0.85

Tested by

no test coverage detected