# PhotoCaptureFrame

> Contains information captured from the web camera.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Windows.WebCam](/engine/6000.3/script-reference/unityengine/windows/webcam.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public sealed class PhotoCaptureFrame : IDisposable
```

## Remarks

Information captured can include the image has well as spatial data.

## Properties

| Property                                                                                                           | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [dataLength](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/datalength.md)           | The length of the raw IMFMediaBuffer which contains the image captured. |
| [hasLocationData](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/haslocationdata.md) | Specifies whether or not spatial data was captured.                     |
| [pixelFormat](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/pixelformat.md)         | The raw image data pixel format.                                        |

## Methods

| Method                                                                                                                                   | Description                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [CopyRawImageDataIntoBuffer](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/copyrawimagedataintobuffer.md) | Will copy the raw IMFMediaBuffer image data into a byte list.                                                        |
| [Dispose](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/dispose.md)                                       | Disposes the PhotoCaptureFrame and any resources it uses.                                                            |
| [GetUnsafePointerToBuffer](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/getunsafepointertobuffer.md)     | Provides a COM pointer to the native IMFMediaBuffer that contains the image data.                                    |
| [TryGetCameraToWorldMatrix](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/trygetcameratoworldmatrix.md)   | This method will return the camera to world matrix at the time the photo was captured if location data if available. |
| [TryGetProjectionMatrix](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/trygetprojectionmatrix.md)         | This method will return the projection matrix at the time the photo was captured if location data if available.      |
| [UploadImageDataToTexture](/engine/6000.3/script-reference/unityengine/windows/webcam/photocaptureframe/uploadimagedatatotexture.md)     | This method will copy the captured image data into a user supplied texture for use in Unity.                         |
