public void SetOutputHandler(BeginImageDelegate beginImage, WriteDataDelegate writeData, EndImageDelegate endImage)
 {
     beginImageDelegate = beginImage;
     writeDataDelegate  = writeData;
     endImageDelegate   = endImage;
     nvttSetOutputOptionsOutputHandler(options, beginImageDelegate, writeDataDelegate, endImageDelegate);
 }
        public void SetOutputHandler(BeginImageDelegate beginImage, WriteDataDelegate writeImage, EndImageDelegate endImage)
        {
            IntPtr ptrBeginImage = IntPtr.Zero;
            IntPtr ptrWriteData  = IntPtr.Zero;
            IntPtr ptrEndImage   = IntPtr.Zero;

            if (beginImage != null || writeImage != null || endImage != null)
            {
                ptrBeginImage = Marshal.GetFunctionPointerForDelegate(beginImage);
                ptrWriteData  = Marshal.GetFunctionPointerForDelegate(writeImage);
                ptrEndImage   = Marshal.GetFunctionPointerForDelegate(endImage);
            }

            nvttSetOutputOptionsOutputHandler(options, ptrBeginImage, ptrWriteData, ptrEndImage);
        }
 private extern static void nvttSetOutputOptionsOutputHandler(IntPtr outputOptions, BeginImageDelegate beginImage, WriteDataDelegate writeData, EndImageDelegate endImage);
        public void SetOutputHandler(BeginImageDelegate beginImage, WriteDataDelegate writeImage, EndImageDelegate endImage)
        {
            IntPtr ptrBeginImage = IntPtr.Zero;
            IntPtr ptrWriteData = IntPtr.Zero;
            IntPtr ptrEndImage = IntPtr.Zero;

            if (beginImage != null || writeImage != null || endImage != null)
            {
                ptrBeginImage = Marshal.GetFunctionPointerForDelegate(beginImage);
                ptrWriteData = Marshal.GetFunctionPointerForDelegate(writeImage);
                ptrEndImage = Marshal.GetFunctionPointerForDelegate(endImage);
            }

            nvttSetOutputOptionsOutputHandler(options, ptrBeginImage, ptrWriteData, ptrEndImage);
        }