public static void Snap(ImaqdxSessionHandle session, VisionImage image) { Debug.Assert(session != null, "The session parameter cannot be null."); Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle."); Debug.Assert(image != null, "The image parameter cannot be null."); int status = NiImaqdxDll.IMAQdxSnap(session, image._image); ExceptionBuilder.CheckErrorAndThrow(status); }