Exemple #1
0
        private static void CreateImageDataArray(ImaqdxSessionHandle session, ref byte[] data)
        {
            uint bufferSize;
            int  status = NiImaqdxDll.IMAQdxGetRawBufferSize(session, out bufferSize);

            ExceptionBuilder.CheckErrorAndThrow(status);

            if (data == null || data.Length != bufferSize)
            {
                data = new byte[bufferSize];
            }
        }