Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CapturedFrame class

Represents a captured video frame.

Syntax


var capturedFrame = new Windows.Media.Capture.CapturedFrame();
var capturedFrame = CapturedPhoto.Frame;

Members

The CapturedFrame class has these types of members:

Methods

The CapturedFrame class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CloneStream Creates a copy of the stream.
Close Closes the captured framed object.
Dispose Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
FlushAsync Asynchronously commits and flushes all of the data of the CapturedFrame.
GetInputStreamAt Gets the input stream at the specified position.
GetOutputStreamAt Gets the output stream at the specified position.
ReadAsync Returns an asynchronous byte reader object.
Seek Seeks the stream to the specified position.
WriteAsync Asynchronously writes the specified data to the stream.

 

Properties

The CapturedFrame class has these properties.

PropertyAccess typeDescription

CanRead

Read-onlyGets a value that indicates if the captured frame can be read from.

CanWrite

Read-onlyGets a value that indicates if the captured frame can be written to.

ContentType

Read-onlyGets the content type of the captured frame.

Height

Read-onlyGets the height of the captured frame

Position

Read-onlyGets the position of the captured frame.

Size

Read/writeGets the size of the captured frame in bytes.

SoftwareBitmap

Read-onlyGets a SoftwareBitmap object representing the captured frame.

Width

Read-onlyGets the width of the captured frame.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

See also

Object
IRandomAccessStreamWithContentType
IRandomAccessStream
IClosable
IInputStream
IOutputStream
IContentTypeProvider

 

 

Show:
© 2015 Microsoft