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

Method Replicate

vips/vips.go:845–854  ·  view source on GitHub ↗
(width, height int, centered bool)

Source from the content-addressed store, hash-verified

843}
844
845func (img *Image) Replicate(width, height int, centered bool) error {
846 var tmp *C.VipsImage
847
848 if C.vips_replicate_go(img.VipsImage, &tmp, C.int(width), C.int(height), gbool(centered)) != 0 {
849 return Error()
850 }
851 img.swapAndUnref(tmp)
852
853 return nil
854}
855
856func (img *Image) Embed(width, height int, offX, offY int) error {
857 var tmp *C.VipsImage

Callers 2

prepareWatermarkMethod · 0.80
applyWatermarkMethod · 0.80

Calls 3

swapAndUnrefMethod · 0.95
gboolFunction · 0.85
ErrorFunction · 0.70

Tested by

no test coverage detected