Beispiel #1
0
 public void SnapPicture(IntPtr CardHandle, string SaveName, int PictureType, DxMediaApi.RECT SnapRect)
 {
     if (PictureType == 0)
     {
         DxMediaApi.DXSnapToBMPFile(CardHandle, SaveName, ref SnapRect);
     }
     else
     {
         DxMediaApi.DXSnapToJPGFile(CardHandle, SaveName, 100, ref SnapRect);
     }
 }
Beispiel #2
0
        public int StartPrview(IntPtr CardHandle, IntPtr PrvHwnd, DxMediaApi.RECT PrvRect, int PrvModle)
        {
            int ok = DxMediaApi.DXStartPreview(CardHandle, PrvHwnd, ref PrvRect, PrvModle);

            return(ok);
        }