共用方式為


BitmapFrame 類別

定義

提供單一框架內資料的讀取權限。

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
繼承
Object Platform::Object IInspectable BitmapFrame
屬性
實作

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()

以非同步方式要求框架的圖元資料。 產生的圖元資料陣列會使用 BitmapPixelFormatBitmapAlphaMode 屬性中指定的點陣圖像素格式和 Alpha 模式。 它也會套用色彩管理和 EXIF 方向 (如需詳細資訊,請參閱一節以取得詳細資訊) 。

GetPixelDataAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode)

使用指定的參數,以非同步方式要求框架的圖元資料。

GetSoftwareBitmapAsync()

以非同步方式取得點陣圖框架的 SoftwareBitmap 標記法。

GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode)

以非同步方式取得點陣圖框架的 SoftwareBitmap 標記法。

GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode)

以非同步方式取得點陣圖框架的 SoftwareBitmap 標記法。

GetThumbnailAsync()

以非同步方式傳回包含縮圖影像的資料流程。

適用於