Skip to main content

Interface ICamera

Interface for camera sensors

Assembly: Meadow.Contracts.dll
View Source
public interface ICamera

Methods

CapturePhoto()

Capture a new image

View Source
bool CapturePhoto()
Returns

System.Boolean: true if successful### IsPhotoAvailable() Check if there is picture data on the camera

View Source
bool IsPhotoAvailable()
Returns

System.Boolean: true is data is available### GetPhotoData() Get the picture data from the camera

View Source
Task<byte[]> GetPhotoData()
Returns

System.Threading.Tasks.Task<System.Byte[]>: the picture data as a byte array### GetPhotoStream() Get the picture data from the camera

View Source
Task<MemoryStream?> GetPhotoStream()
Returns

System.Threading.Tasks.Task<System.IO.MemoryStream>: the picture data as a memory stream