ImageMagick.MagickImage.NativeMagickImage.SetColormap C# (CSharp) Метод

SetColormap() публичный Метод

public SetColormap ( int index, MagickColor color ) : void
index int
color MagickColor
Результат void
      public void SetColormap(int index, MagickColor color)
      {
        using (INativeInstance colorNative = MagickColor.CreateInstance(color))
        {
          IntPtr exception = IntPtr.Zero;
          #if ANYCPU
          if (NativeLibrary.Is64Bit)
          #endif
          #if WIN64 || ANYCPU
          NativeMethods.X64.MagickImage_SetColormap(Instance, (UIntPtr)index, colorNative.Instance, out exception);
          #endif
          #if ANYCPU
          else
          #endif
          #if !WIN64 || ANYCPU
          NativeMethods.X86.MagickImage_SetColormap(Instance, (UIntPtr)index, colorNative.Instance, out exception);
          #endif
          CheckException(exception);
        }
      }
      public bool SetColorMetric(MagickImage image)
MagickImage.NativeMagickImage