I am trying to draw a picture containing a SF Symbol onto a canvas but instead of the defined color its drawn in black.
Var Testcolor As New ColorGroup(Color.Red, Color.Green )
Var Icon As Picture = Picture.SystemImage(LeftIconName, 0, Picture.SystemImageWeights.Regular, Testcolor, Nil)
//Icon = ImageExtensionsXC.ImageWithColorXC(Icon, Color.White)
g.DrawPicture(Icon, 20, 25, 30, 30)
ImageViewer1.Image = Icon
The ImageViewer shows the icon with correct color but on the canvas it’s drawn in black. Also when I try to save the icon to check it, it’s saved in black.
What am I doing wrong?