(width, height int, centered bool)
| 843 | } |
| 844 | |
| 845 | func (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 | |
| 856 | func (img *Image) Embed(width, height int, offX, offY int) error { |
| 857 | var tmp *C.VipsImage |
no test coverage detected