ImageMagick.MagickColor.CreateInstance C# (CSharp) Метод

CreateInstance() статический приватный Метод

static private CreateInstance ( MagickColor instance ) : INativeInstance
instance MagickColor
Результат INativeInstance
    internal static INativeInstance CreateInstance(MagickColor instance)
    {
      if (instance == null)
        return NativeInstance.Zero;
      return instance.CreateNativeInstance();
    }
    internal static MagickColor CreateInstance(IntPtr instance)

Same methods

MagickColor::CreateInstance ( IntPtr instance ) : MagickColor

Usage Example

Пример #1
0
 public bool FuzzyEquals(IMagickColor <QuantumType>?other, QuantumType fuzz)
 {
     using (var otherNative = MagickColor.CreateInstance(other))
     {
         bool result;
         #if PLATFORM_AnyCPU
         if (OperatingSystem.IsArm64)
         #endif
         #if PLATFORM_arm64 || PLATFORM_AnyCPU
         result = NativeMethods.ARM64.MagickColor_FuzzyEquals(Instance, otherNative.Instance, fuzz);
         #endif
         #if PLATFORM_AnyCPU
         else if (OperatingSystem.Is64Bit)
         #endif
         #if PLATFORM_x64 || PLATFORM_AnyCPU
         result = NativeMethods.X64.MagickColor_FuzzyEquals(Instance, otherNative.Instance, fuzz);
         #endif
         #if PLATFORM_AnyCPU
         else
         #endif
         #if PLATFORM_x86 || PLATFORM_AnyCPU
         result = NativeMethods.X86.MagickColor_FuzzyEquals(Instance, otherNative.Instance, fuzz);
         #endif
         return(result);
     }
 }
All Usage Examples Of ImageMagick.MagickColor::CreateInstance