.. _doxcsid-class_p1_1_1_camera_sdk_1_1_camera_1a0307790fe0f00d2b07e6ef306e4ffb62: Camera.WaitForImage Method ++++++++++++++++++++++++++ Definition """""""""" *Namespace:* ``P1Sdk`` Wait for the next captured image to arrive .. ref-code-block:: csharp :class: doxyrest-overview-code-block public :ref:`IIQImageFile` WaitForImage(uint timeoutMs = 0); Images are transferred as complete in-memory IIQ files. This memory is owned by the API sub-system, and must dispose it as soon as you are done. Before you can receive any images, you must call :ref:`EnableImageReceiving ` to enable data transfer from the camera. Likewise, this method does not trigger an actual image capture - use :ref:`TriggerCapture ` for that. using(var image = camera.WaitForImage()) { using(var file = FileStream(image.FileName, FileMode.Create)) { image.Data.CopyTo(file); } } .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - timeoutMs - OPTIONAL: Amount of milliseconds to wait for an image. Zero is forever. .. rubric:: Returns: An object descripting the in-memory IIQ file .. rubric:: See also: :ref:`TriggerCapture `, :ref:`EnableImageReceiving `, :ref:`WakeUpWaitingImageThreads `