Method ImageSourceFromSvg
ImageSourceFromSvg(SvgImage?, int, bool, bool)
Creates ImageSource from the specified SvgImage.
public static SKBitmapImageSource? ImageSourceFromSvg(SvgImage? svgImage, int sizeInPixels, bool isDark, bool isDisabled = false)
Parameters
svgImageSvgImageSvg image.
sizeInPixelsintImage size in pixels.
isDarkboolWhether background is dark.
isDisabledboolWhether to use disabled or normal color for the single color SVG images.
Returns
ImageSourceFromSvg(SvgImage?, int, bool)
Creates ImageSource with disabled images from the specified SvgImage.
public static (SKBitmapImageSource Light, SKBitmapImageSource Dark)? ImageSourceFromSvg(SvgImage? svgImage, int sizeInPixels, bool isDisabled = false)
Parameters
svgImageSvgImageThe SVG image to convert.
sizeInPixelsintThe size of the image in pixels.
isDisabledboolWhether to use disabled or normal color for the single color SVG images.
Returns
- (SKBitmapImageSource Light, SKBitmapImageSource Dark)?
A tuple containing the light and dark SKBitmapImageSource with disabled images.