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
svgImage
SvgImageSvg image.
sizeInPixels
intImage size in pixels.
isDark
boolWhether background is dark.
isDisabled
boolWhether 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
svgImage
SvgImageThe SVG image to convert.
sizeInPixels
intThe size of the image in pixels.
isDisabled
boolWhether 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.