Share via


SoftwareBitmap.Convert Method

Definition

Overloads

Convert(SoftwareBitmap, BitmapPixelFormat)

Converts an existing SoftwareBitmap to a SoftwareBitmap with a different pixel format.

Convert(SoftwareBitmap, BitmapPixelFormat, BitmapAlphaMode)

Converts an existing SoftwareBitmap to a SoftwareBitmap with a different pixel format or alpha mode.

Convert(SoftwareBitmap, BitmapPixelFormat)

Converts an existing SoftwareBitmap to a SoftwareBitmap with a different pixel format.

[Windows.Foundation.Metadata.Overload("Convert")]
public static SoftwareBitmap Convert(SoftwareBitmap source, BitmapPixelFormat format);

Parameters

source
SoftwareBitmap

The software bitmap to convert.

format
BitmapPixelFormat

The pixel format of the new software bitmap.

Returns

The converted software bitmap.

Attributes

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Convert(SoftwareBitmap, BitmapPixelFormat, BitmapAlphaMode)

Converts an existing SoftwareBitmap to a SoftwareBitmap with a different pixel format or alpha mode.

[Windows.Foundation.Metadata.Overload("ConvertWithAlpha")]
public static SoftwareBitmap Convert(SoftwareBitmap source, BitmapPixelFormat format, BitmapAlphaMode alpha);

Parameters

source
SoftwareBitmap

The software bitmap to convert.

format
BitmapPixelFormat

The pixel format of the new software bitmap.

alpha
BitmapAlphaMode

The alpha mode of the new software bitmap.

Returns

The converted software bitmap.

Attributes

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100