Svg
Assembly: ServiceStack.dll
View Source
Declaration
public static class Svg
Properties
LightColor
View Source
Declaration
public static string LightColor { get; set; }
FillColors
View Source
Declaration
public static string[] FillColors { get; set; }
CssFiles
View Source
Declaration
public static Dictionary<string, List<string>> CssFiles { get; set; }
CssFillColor
View Source
Declaration
public static Dictionary<string, string> CssFillColor { get; set; }
AppendToCssFiles
View Source
Declaration
public static Dictionary<string, string> AppendToCssFiles { get; set; }
AdjacentCssRules
View Source
Declaration
public static Dictionary<string, string> AdjacentCssRules { get; set; }
Images
View Source
Declaration
public static Dictionary<string, string> Images { get; set; }
DataUris
View Source
Declaration
public static Dictionary<string, string> DataUris { get; set; }
Methods
GetImage(String)
View Source
Declaration
public static string GetImage(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetImage(String, String)
View Source
Declaration
public static string GetImage(string name, string fillColor)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
System.String | fillColor |
GetStaticContent(String)
View Source
Declaration
public static StaticContent GetStaticContent(string name)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
GetDataUri(String)
View Source
Declaration
public static string GetDataUri(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetDataUri(String, String)
View Source
Declaration
public static string GetDataUri(string name, string fillColor)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
System.String | fillColor |
Create(String, String, String, String)
View Source
Declaration
public static string Create(string body, string fill = "none", string viewBox = "0 0 24 24", string stroke = "currentColor")
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | body |
System.String | fill |
System.String | viewBox |
System.String | stroke |
CreateImage(String, String, String, String)
View Source
Declaration
public static ImageInfo CreateImage(string body, string fill = "none", string viewBox = "0 0 24 24", string stroke = "currentColor")
Returns
Parameters
Type | Name |
---|---|
System.String | body |
System.String | fill |
System.String | viewBox |
System.String | stroke |
ImageSvg(String)
View Source
Declaration
public static ImageInfo ImageSvg(string svg)
Returns
Parameters
Type | Name |
---|---|
System.String | svg |
ImageUri(String)
View Source
Declaration
public static ImageInfo ImageUri(string uri)
Returns
Parameters
Type | Name |
---|---|
System.String | uri |
Fill(String, String)
View Source
Declaration
public static string Fill(string svg, string fillColor)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | svg |
System.String | fillColor |
Encode(String)
View Source
Declaration
public static string Encode(string svg)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | svg |
ToDataUri(String)
View Source
Declaration
public static string ToDataUri(string svg)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | svg |
GetBackgroundImageCss(String)
View Source
Declaration
public static string GetBackgroundImageCss(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetBackgroundImageCss(String, String)
View Source
Declaration
public static string GetBackgroundImageCss(string name, string fillColor)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
System.String | fillColor |
InBackgroundImageCss(String)
View Source
Declaration
public static string InBackgroundImageCss(string svg)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | svg |
AddImage(String, String, String)
View Source
Declaration
public static void AddImage(string svg, string name, string cssFile = null)
Parameters
Type | Name |
---|---|
System.String | svg |
System.String | name |
System.String | cssFile |
Load(IVirtualDirectory)
View Source
Declaration
public static void Load(IVirtualDirectory svgDir)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualDirectory | svgDir |