(blurSigma, sharpSigma float64, pixelatePixels int)
| 705 | } |
| 706 | |
| 707 | func (img *Image) ApplyFilters(blurSigma, sharpSigma float64, pixelatePixels int) error { |
| 708 | var tmp *C.VipsImage |
| 709 | |
| 710 | if C.vips_apply_filters(img.VipsImage, &tmp, C.double(blurSigma), C.double(sharpSigma), C.int(pixelatePixels)) != 0 { |
| 711 | return Error() |
| 712 | } |
| 713 | |
| 714 | img.swapAndUnref(tmp) |
| 715 | |
| 716 | return nil |
| 717 | } |
| 718 | |
| 719 | // Type returns the current colorspace interpretation of the image. |
| 720 | func (img *Image) Type() Interpretation { |
no test coverage detected