Sleep(1000)
' Generate new icon
Private DriveName As String = "d:\"
Private IconFileName As String = "newicon.png"
Private IconFileName2 As String = "newicon2.png"
Private emptyicon,favicon As Image
emptyicon.Initialize(File.DirAssets,"emptyicon.png")
Canvas1.Initialize("")
MainForm.RootPane.AddNode(Canvas1,50,50,100,100)
Private out As OutputStream = File.OpenOutput(DriveName, IconFileName, False)
ImageView1.Snapshot2(fx.Colors.Transparent).WriteToStream(out)
favicon.Initialize(DriveName, IconFileName)
Canvas1.DrawImage(emptyicon,0,0,100,100)
Canvas1.DrawImage(favicon,0,0,100,100)
Private out As OutputStream = File.OpenOutput(DriveName, IconFileName2, False)
Canvas1.Snapshot2(fx.Colors.Transparent).WriteToStream(out)