ImageMagick.OpenCLKernelProfileRecord.CreateInstance C# (CSharp) Méthode

CreateInstance() static private méthode

static private CreateInstance ( IntPtr instance ) : OpenCLKernelProfileRecord
instance System.IntPtr
Résultat OpenCLKernelProfileRecord
    internal static OpenCLKernelProfileRecord CreateInstance(IntPtr instance)
    {
      if (instance == IntPtr.Zero)
        return null;

      NativeOpenCLKernelProfileRecord nativeInstance = new NativeOpenCLKernelProfileRecord();
      nativeInstance.Instance = instance;

      return new OpenCLKernelProfileRecord(nativeInstance);
    }