CaptureScene Method (ImageFormat, PortSet(Int32[], Exception))

Microsoft Robotics Class Reference

Queue request to capture scene to integer array. Can be used to avoid races with only reading the data in other threads, whereas Bitmap's GetPixel() cannot be called from another thread when the sim thread is using it. User is responsible for ensuring only the returned array is not being written to when the simulation engine is using it. Suggested use is to either only read the returned array or create a copy of the array in the callee's thread.

Namespace: Microsoft.Robotics.Simulation.Engine
Assembly: SimulationEngine (in SimulationEngine.dll) Version: 3.0.9999.31299 (3.0.9999.31299)

Syntax

public void CaptureScene(
    ImageFormat format,
    PortSet<int[], Exception> resultPort
)

Parameters

See Also

CameraEntity Class

CaptureScene Overload

Microsoft.Robotics.Simulation.Engine Namespace