Does B4J have an SVG to PNG (or some other image format) conversion facility?
Sub wvMain_PageFinished (Url As String)
Dim m As Map
m.Initialize
Dim count As Int = doScript(wvMain, "$('svg').length")
Dim i As Int
For i = 0 To count - 1
Dim svg As String
Dim scr As String = "var XMLS = new XMLSerializer(); var svg = ($('svg')[" & i & "]); XMLS.serializeToString(svg);"
svg = doScript(wvMain, scr)
m.Put(i,svg)
Next
Dim s As String = m.Get(0)
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Dim wv As WebView
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.Show
wv.Initialize("wv")
wv.LoadHtml(File.ReadString("C:\Users\H\Downloads\SVG_03.svg", ""))
MainForm.RootPane.AddNode(wv, 0, 0, 200, 200)
End Sub
Sub MainForm_MouseClicked (EventData As MouseEvent)
Dim out As OutputStream = File.OpenOutput(File.DirApp, "1.png", False)
wv.Snapshot.WriteToStream(out)
out.Close
End Sub
Does B4J have an SVG to PNG (or some other image format) conversion facility?