SoftwareBitmap.Convert 方法

定义

重载

Convert(SoftwareBitmap, BitmapPixelFormat)

将现有 SoftwareBitmap 转换为具有不同像素格式的 SoftwareBitmap

Convert(SoftwareBitmap, BitmapPixelFormat, BitmapAlphaMode)

将现有 SoftwareBitmap 转换为具有不同像素格式或 alpha 模式的 SoftwareBitmap

Convert(SoftwareBitmap, BitmapPixelFormat)

将现有 SoftwareBitmap 转换为具有不同像素格式的 SoftwareBitmap

public:
 static SoftwareBitmap ^ Convert(SoftwareBitmap ^ source, BitmapPixelFormat format);
/// [Windows.Foundation.Metadata.Overload("Convert")]
 static SoftwareBitmap Convert(SoftwareBitmap const& source, BitmapPixelFormat const& format);
[Windows.Foundation.Metadata.Overload("Convert")]
public static SoftwareBitmap Convert(SoftwareBitmap source, BitmapPixelFormat format);
function convert(source, format)
Public Shared Function Convert (source As SoftwareBitmap, format As BitmapPixelFormat) As SoftwareBitmap

参数

source
SoftwareBitmap

要转换的软件位图。

format
BitmapPixelFormat

新软件位图的像素格式。

返回

转换后的软件位图。

属性

另请参阅

适用于

Convert(SoftwareBitmap, BitmapPixelFormat, BitmapAlphaMode)

将现有 SoftwareBitmap 转换为具有不同像素格式或 alpha 模式的 SoftwareBitmap

public:
 static SoftwareBitmap ^ Convert(SoftwareBitmap ^ source, BitmapPixelFormat format, BitmapAlphaMode alpha);
/// [Windows.Foundation.Metadata.Overload("ConvertWithAlpha")]
 static SoftwareBitmap Convert(SoftwareBitmap const& source, BitmapPixelFormat const& format, BitmapAlphaMode const& alpha);
[Windows.Foundation.Metadata.Overload("ConvertWithAlpha")]
public static SoftwareBitmap Convert(SoftwareBitmap source, BitmapPixelFormat format, BitmapAlphaMode alpha);
function convert(source, format, alpha)
Public Shared Function Convert (source As SoftwareBitmap, format As BitmapPixelFormat, alpha As BitmapAlphaMode) As SoftwareBitmap

参数

source
SoftwareBitmap

要转换的软件位图。

format
BitmapPixelFormat

新软件位图的像素格式。

alpha
BitmapAlphaMode

新软件位图的 alpha 模式。

返回

转换后的软件位图。

属性

另请参阅

适用于