Example #1
0
 public static Bitmap getScreenImage(int index, HNStruct.MONITORINFOEX[] monitorinfo)
 {
     HNStruct.RECT screenRect         = getScreenRect(index, monitorinfo);
     ref HNStruct.MONITORINFOEX local = ref monitorinfo[index];
Example #2
0
 private static bool onMonitorInfoCallback(IntPtr hMonitor, IntPtr hdcMonitor, ref HNStruct.RECT lprcMonitor,
                                           IntPtr dwData)
 {
     HNStruct.MONITORINFOEX lpmi = new HNStruct.MONITORINFOEX();
     lpmi.Size = Marshal.SizeOf(typeof(HNStruct.MONITORINFOEX));
     HuionDriverDLL.GetMonitorInfo(hMonitor, ref lpmi);
     mMonitorInfos[screenNum] = lpmi;
     ++screenNum;
     return(true);
 }