BitmapFrame 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对单个帧内数据的读取访问权限。
public ref class BitmapFrame sealed : IBitmapFrameWithSoftwareBitmap
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BitmapFrame final : IBitmapFrameWithSoftwareBitmap
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BitmapFrame : IBitmapFrameWithSoftwareBitmap
Public NotInheritable Class BitmapFrame
Implements IBitmapFrameWithSoftwareBitmap
- 继承
- 属性
- 实现
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
属性
| BitmapAlphaMode |
帧的默认 alpha 模式。 |
| BitmapPixelFormat |
最适合帧的像素格式。 |
| BitmapProperties |
框架中元数据的只读视图。 |
| DpiX |
帧的水平分辨率(以每英寸点为单位)。 |
| DpiY |
帧的垂直分辨率(以点/英寸为单位)。 |
| OrientedPixelHeight |
将任何 EXIF 方向应用到位图后,帧的高度(以像素为单位)。 |
| OrientedPixelWidth |
将任何 EXIF 方向应用于位图后,帧的宽度(以像素为单位)。 |
| PixelHeight |
帧的高度(以像素为单位)。 |
| PixelWidth |
框架的宽度(以像素为单位)。 |
方法
| GetPixelDataAsync() |
异步请求帧的像素数据。 生成的像素数据数组将使用 BitmapPixelFormat 和 BitmapAlphaMode 属性中指定的位图 像素格式和 alpha 模式。 它还将应用颜色管理和 EXIF 方向 (有关详细信息,请参阅备注部分) 。 |
| GetPixelDataAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode) |
使用指定的参数异步请求帧的像素数据。 |
| GetSoftwareBitmapAsync() |
异步获取位图帧的 SoftwareBitmap 表示形式。 |
| GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode) |
异步获取位图帧的 SoftwareBitmap 表示形式。 |
| GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode) |
异步获取位图帧的 SoftwareBitmap 表示形式。 |
| GetThumbnailAsync() |
异步返回包含缩略图的流。 |