(width, height int, offX, offY int)
| 854 | } |
| 855 | |
| 856 | func (img *Image) Embed(width, height int, offX, offY int) error { |
| 857 | var tmp *C.VipsImage |
| 858 | |
| 859 | if C.vips_embed_go(img.VipsImage, &tmp, C.int(offX), C.int(offY), C.int(width), C.int(height)) != 0 { |
| 860 | return Error() |
| 861 | } |
| 862 | img.swapAndUnref(tmp) |
| 863 | |
| 864 | return nil |
| 865 | } |
| 866 | |
| 867 | func (img *Image) ApplyWatermark(wm *Image, left, top int, opacity float64) error { |
| 868 | var tmp *C.VipsImage |
no test coverage detected