SoftwareBitmap.Convert Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
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 |
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
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 |