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.

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

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

Convert(SoftwareBitmap, BitmapPixelFormat, BitmapAlphaMode)

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

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

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