Exemple #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));
        }
Exemple #2
0
 public static bool SetDUOResolutionInfo(IntPtr duo, DUOResolutionInfo val)
 {
     return(DUOLibInternal.DUOSetResolutionInfo(duo, val));
 }
Exemple #3
0
 public static bool GetDUOResolutionInfo(IntPtr duo, ref DUOResolutionInfo val)
 {
     return(DUOLibInternal.DUOGetResolutionInfo(duo, ref val));
 }
Exemple #4
0
 internal static extern bool DUOSetResolutionInfo(IntPtr duo, DUOResolutionInfo val);
Exemple #5
0
 internal static extern int EnumerateDUOResolutions(ref DUOResolutionInfo resolutions, int resListSize, int width, int height, DUOBinning binning, float fps);