Esempio n. 1
0
        private static string GetResolutionInfoString(DUOResolutionInfo resolutionInfo)
        {
            int hBinning = 1;

            if ((resolutionInfo.binning & DUOBinning.DUO_BIN_HORIZONTAL2) == DUOBinning.DUO_BIN_HORIZONTAL2)
            {
                hBinning = 2;
            }
            if ((resolutionInfo.binning & DUOBinning.DUO_BIN_HORIZONTAL4) == DUOBinning.DUO_BIN_HORIZONTAL4)
            {
                hBinning = 4;
            }
            int vBinning = 1;

            if ((resolutionInfo.binning & DUOBinning.DUO_BIN_VERTICAL2) == DUOBinning.DUO_BIN_VERTICAL2)
            {
                vBinning = 2;
            }
            if ((resolutionInfo.binning & DUOBinning.DUO_BIN_VERTICAL4) == DUOBinning.DUO_BIN_VERTICAL4)
            {
                vBinning = 4;
            }
            return(String.Format("[Resolution Info]\nFrame Resolution [w/h] : {0} x {1}\nFrame Binning [h/v] : {2} x {3}\nFramerate : {4}\n", resolutionInfo.width, resolutionInfo.height, hBinning, vBinning, resolutionInfo.fps));
        }
Esempio n. 2
0
 public static bool SetDUOResolutionInfo(IntPtr duo, DUOResolutionInfo val)
 {
     return(DUOLibInternal.DUOSetResolutionInfo(duo, val));
 }
Esempio n. 3
0
 public static bool GetDUOResolutionInfo(IntPtr duo, ref DUOResolutionInfo val)
 {
     return(DUOLibInternal.DUOGetResolutionInfo(duo, ref val));
 }
Esempio n. 4
0
 internal static extern bool DUOSetResolutionInfo(IntPtr duo, DUOResolutionInfo val);
Esempio n. 5
0
 internal static extern int EnumerateDUOResolutions(ref DUOResolutionInfo resolutions, int resListSize, int width, int height, DUOBinning binning, float fps);