Class SvgImage
Impements methods and properties to work with toolbar svg images. These are rectangular images with small size. This class allows to speed up loading and getting of different states (and sizes) of the same image.
public class SvgImage : BaseObject, IBaseObject
- Inheritance
-
SvgImage
- Implements
- Derived
Constructors
- SvgImage(Stream)
Initializes a new instance of the SvgImage class.
- SvgImage(string, SvgImageDataKind)
Initializes a new instance of the SvgImage class.
Properties
- IsMono
Gets whether image has single color.
- NumOfColors
Gets number of colors in svg, passed in the constructor.
- Url
Gets image url.
Methods
- AsDisabled(int, bool)
Gets image with the specified size and Disabled color.
- AsDisabledImage(int, bool)
Gets image with the specified size and Disabled color.
- AsImage(int)
Gets svg image as Image.
- AsImageSet()
Gets svg image as ImageSet with default toolbar image size.
- AsImageSet(int)
Gets svg image as ImageSet.
- AsImageSet(int, KnownSvgColor, bool)
Gets image with the specified size and known svg color.
- AsNormal(int, bool)
Gets image with the specified size and Normal color.
- AsNormalImage(int, bool)
Gets image with the specified size and Normal color.
- Clone()
Clones this object.
- GetSvgColor(KnownSvgColor, bool)
Gets real color value for the specified known svg color. Uses GetSvgColor(KnownSvgColor, bool) and color overrides specified with SetColorOverride(KnownSvgColor, bool, Color?).
- ImageSetWithColor(int, Color)
Gets mono svg image as ImageSet filled using the specified color. Svg images with two or more colors are returned as is.
- ImageWithColor(int, Color?)
Gets mono svg image as Image filled using the specified color. Svg images with two or more colors are returned as is.
- LoadImage()
Loads image if it was not yet loaded from the url or stream specified in the constructor.
- LoadImage(SizeI, Color?)
Creates new ImageSet and loads there this svg image with the specified size and color.
- LoadImage(int, Color?)
Creates new ImageSet and loads there this svg image with the specified size and color.
- SetColorOverride(KnownSvgColor, LightDarkColor?)
Sets color overrides used instead of default known svg colors. Override is used only for this svg image.
- SetColorOverride(KnownSvgColor, bool, Color?)
Sets color overrides used instead of default known svg colors. Override is used only for this svg image.