(colorspace Interpretation)
| 819 | } |
| 820 | |
| 821 | func (img *Image) Colorspace(colorspace Interpretation) error { |
| 822 | if img.Type() == colorspace { |
| 823 | return nil |
| 824 | } |
| 825 | |
| 826 | var tmp *C.VipsImage |
| 827 | |
| 828 | if C.vips_colourspace_go(img.VipsImage, &tmp, C.VipsInterpretation(colorspace)) != 0 { |
| 829 | return Error() |
| 830 | } |
| 831 | img.swapAndUnref(tmp) |
| 832 | |
| 833 | return nil |
| 834 | } |
| 835 | |
| 836 | func (img *Image) CopyMemory() error { |
| 837 | var tmp *C.VipsImage |
no test coverage detected