This commit is contained in:
Jonathan Jenne
2023-11-13 13:15:04 +01:00
parent 623cf43520
commit 5302f0dff5
10 changed files with 198 additions and 66 deletions

View File

@@ -1,4 +1,5 @@
Imports System.Drawing
Imports DevExpress.Utils.Svg
Imports EnvelopeGenerator.Common.Constants
Public Class Helpers
@@ -71,4 +72,17 @@ Public Class Helpers
End Select
End Function
Public Shared Function GetColorCircle(pBaseImage As SvgImage, pColor As Color) As SvgImage
Dim oColoredImage As SvgImage = pBaseImage.
Clone(Sub(el As SvgElement, table As Hashtable)
If TypeOf el Is SvgCircle Then
el.Styles.Clear()
table("StyleName") = String.Empty
table("Fill") = ColorTranslator.ToHtml(pColor)
End If
End Sub)
Return oColoredImage
End Function
End Class