Method GetNormalAndDisabledSvg
GetNormalAndDisabledSvg(SvgImage?, KnownButton?, AbstractControl, int?)
Gets the normal and disabled images as ImageSet from the specified SvgImage and KnownButton.
public static (ImageSet? Normal, ImageSet? Disabled) GetNormalAndDisabledSvg(SvgImage? svg, KnownButton? btn, AbstractControl control, int? size = null)
Parameters
svgSvgImageThe SVG image to process. Optional. If not specified, the SVG image is retrieved based on the known button image.
btnKnownButton?The known button for which images are retrieved.
controlAbstractControlThe control which affects image rendering and is used to get scale factor.
sizeint?The size of the image. If not specified, the default size for the toolbar images is used.
Returns
GetNormalAndDisabledSvg(string, AbstractControl, SizeI?)
Initializes a tuple with two instances of the ImageSet class from the specified url which contains svg data. Images are loaded for the normal and disabled states using GetSvgColor(KnownSvgColor).
public static (ImageSet Normal, ImageSet Disabled) GetNormalAndDisabledSvg(string url, AbstractControl control, SizeI? size = null)
Parameters
urlstring"embres" or "file" url with svg image data.
controlAbstractControlControl which GetSvgColor(KnownSvgColor) method is called to get color information.
sizeSizeI?Image size in pixels. If it is not specified, GetDefaultImageSize(AbstractControl?) is used to get image size.