public void Polaroid(DrawingSettings settings, string caption, double angle, PixelInterpolateMethod method)
{
using (INativeInstance settingsNative = DrawingSettings.CreateInstance(settings))
{
using (INativeInstance captionNative = UTF8Marshaler.CreateInstance(caption))
{
IntPtr exception = IntPtr.Zero;
IntPtr result;
#if ANYCPU
if (NativeLibrary.Is64Bit)
#endif
#if WIN64 || ANYCPU
result = NativeMethods.X64.MagickImage_Polaroid(Instance, settingsNative.Instance, captionNative.Instance, angle, (UIntPtr)method, out exception);
#endif
#if ANYCPU
else
#endif
#if !WIN64 || ANYCPU
result = NativeMethods.X86.MagickImage_Polaroid(Instance, settingsNative.Instance, captionNative.Instance, angle, (UIntPtr)method, out exception);
#endif
CheckException(exception, result);
Instance = result;
}
}
}
public void Posterize(int levels, DitherMethod method, Channels channels)