ImageMagick.OpenCLKernelProfileRecord.CreateInstance C# (CSharp) Method

CreateInstance() static private method

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

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

      return new OpenCLKernelProfileRecord(nativeInstance);
    }