ImageMagick.MagickImage.NativeMagickImage.Colorize C# (CSharp) Method

Colorize() public method

public Colorize ( MagickColor color, string blend ) : void
color MagickColor
blend string
return void
      public void Colorize(MagickColor color, string blend)
      {
        using (INativeInstance colorNative = MagickColor.CreateInstance(color))
        {
          using (INativeInstance blendNative = UTF8Marshaler.CreateInstance(blend))
          {
            IntPtr exception = IntPtr.Zero;
            IntPtr result;
            #if ANYCPU
            if (NativeLibrary.Is64Bit)
            #endif
            #if WIN64 || ANYCPU
            result = NativeMethods.X64.MagickImage_Colorize(Instance, colorNative.Instance, blendNative.Instance, out exception);
            #endif
            #if ANYCPU
            else
            #endif
            #if !WIN64 || ANYCPU
            result = NativeMethods.X86.MagickImage_Colorize(Instance, colorNative.Instance, blendNative.Instance, out exception);
            #endif
            CheckException(exception, result);
            Instance = result;
          }
        }
      }
      public IntPtr Compare(MagickImage image, ErrorMetric metric, Channels channels, out double distortion)
MagickImage.NativeMagickImage