예제 #1
0
 /// <summary>
 /// Sets VGA capture parameters.
 /// </summary>
 public unsafe bool SetGrabParams(GrabParams aGp)
 {
     fixed(V2U_GrabParameters *gp = &aGp.iGp)
     {
         return(SetGrabParams(gp));
     }
 }
예제 #2
0
        /// <summary>
        /// Queries current VGA capture parameters.
        /// </summary>
        public unsafe GrabParams GetGrabParams()
        {
            GrabParams gp = new GrabParams();

            fixed(V2U_GrabParameters *ptr = &gp.iGp)
            {
                if (FrmGrab_GetGrabParams(iGrabber, ptr))
                {
                    return(gp);
                }
                else
                {
                    return(null);
                }
            }
        }