Table of Contents

Method GetNormalAndDisabledSvgImages

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetNormalAndDisabledSvgImages(SvgImage?, KnownButton?, AbstractControl, CoordAndUnit?)

Gets the normal and disabled images as Image from the specified SvgImage and KnownButton.

public static (Image? Normal, Image? Disabled) GetNormalAndDisabledSvgImages(SvgImage? svg, KnownButton? btn, AbstractControl control, CoordAndUnit? size = null)

Parameters

svg SvgImage

The SVG image to process. Optional. If not specified, the SVG image is retrieved based on the known button image.

btn KnownButton?

The known button for which images are retrieved.

control AbstractControl

The control which affects image rendering and is used to get scale factor.

size CoordAndUnit?

The size of the image. If not specified, the default size for the toolbar images is used.

Returns

(Image Normal, Image Disabled)

A tuple containing normal and disabled images.