public void Morphology(MorphologyMethod method, string kernel, Channels channels, int iterations)
{
using (INativeInstance kernelNative = UTF8Marshaler.CreateInstance(kernel))
{
IntPtr exception = IntPtr.Zero;
IntPtr result;
#if ANYCPU
if (NativeLibrary.Is64Bit)
#endif
#if WIN64 || ANYCPU
result = NativeMethods.X64.MagickImage_Morphology(Instance, (UIntPtr)method, kernelNative.Instance, (UIntPtr)channels, (UIntPtr)iterations, out exception);
#endif
#if ANYCPU
else
#endif
#if !WIN64 || ANYCPU
result = NativeMethods.X86.MagickImage_Morphology(Instance, (UIntPtr)method, kernelNative.Instance, (UIntPtr)channels, (UIntPtr)iterations, out exception);
#endif
CheckException(exception, result);
Instance = result;
}
}
public void MotionBlur(double radius, double sigma, double angle)