WpfDrawingSettings PixelWidth PixelHeight Have no effect #258
Replies: 3 comments
-
Currently, we do not transform the |
Beta Was this translation helpful? Give feedback.
-
I want to make sure if changing the size of DrawingImage can reduce the memory usage? var setting = new WpfDrawingSettings() { IncludeRuntime = true, TextAsGeometry = true,EnsureViewboxSize = false};
using (FileSvgReader converter = new FileSvgReader(setting))
{
var drawGroup = converter.Read(net.Stream);
drawGroup.Transform = new ScaleTransform(0.1, 0.1);
var draw = new DrawingImage(drawGroup);
draw.Freeze();
return draw;
} |
Beta Was this translation helpful? Give feedback.
-
I am not sure it will. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions