var setting = new WpfDrawingSettings() { IncludeRuntime = true, TextAsGeometry = true };
setting.PixelWidth = 100;
setting.PixelHeight = 100;
using (FileSvgReader converter = new FileSvgReader(setting))
{
var draw = new DrawingImage(converter.Read(net.Stream));
draw.Freeze();
return draw;
}
The DrawingImage generated is not width = 100 height = 100. The DrawingImage is still the original size of the vector image. Is there any problem with my setting?
The DrawingImage generated is not width = 100 height = 100. The DrawingImage is still the original size of the vector image. Is there any problem with my setting?