Inside a class, I define a string variable to store the content of a svg file (XML) so I can manipulate its color and opacity and then convert it to a picture object with:
Var svgPicture As Picture = Picture.FromData(svgStringWithNewColor)
so, svgPicture then displays on a DesktopCanvas (same with Canvas) on Paint method with DrawPicture. On MacOs it shows ok but not on Windows. If I drop the svg file to Xojo it displays fine on a canvas with Backdrop property.
Tryed converting XML string to memory block with this, same result:
Var m As New MemoryBlock(1024)
m.CString(0) = svgStringWithNewColor
Var svgPicture As Picture = Picture.FromData(m)
Does anyone knows what could be the cause of the problem?
13 posts - 6 participants