Comments (3)
Currently, we do not transform the DrawingGroup
, so this feature only works when creating static images.
You can try rescaling the output of the converter.Read(net.Stream)
.
from sharpvectors.
Currently, we do not transform the
DrawingGroup
, so this feature only works when creating static images.
You can try rescaling the output of theconverter.Read(net.Stream)
.
I want to make sure if changing the size of DrawingImage can reduce the memory usage?
I tried to change the DrawingGroup directly by modifying the Transform, and the size of the DrawingImage did change, but it didn't seem to decay at all when it was filled into the control. Memory is not reduced.
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;
}
from sharpvectors.
I want to make sure if changing the size of DrawingImage can reduce the memory usage?
I am not sure it will. DrawingImage
is basically still a vector drawing implementation of the ImageSource
. It is not the actual rendered image, just the source of the image and applying a transformation only add a projection definition.
from sharpvectors.
Related Issues (20)
- Change svgImage source on mouseOver? HOT 1
- SvgViewbox can not open this Uri(https://baikebcs.bdimg.com/cms/static/baike-icon.svg) HOT 4
- The opacity of property of SVG not correct. HOT 5
- Svg file is different with other browser. HOT 6
- XXE vulnerability allows exfiltration of local data HOT 4
- `AppName` case style may determine whether show svg image or not HOT 1
- SharpVectors release schedule? HOT 1
- Rendering issue with elements outside the canvas HOT 3
- Target framework issue when used in .NET 4.7.2. project HOT 3
- NOTE: Dropping Support for .NET 5
- The svg image is cropped
- Not Support the extra commas in SVG elements HOT 4
- The Svg file not render correct on .net7 windows platform.
- Release New version schedule? HOT 1
- EnsureViewboxSize of WpfDrawingSettings not work when svg has viewbox. HOT 2
- Size of drawinggroup is not correct in 1.83 HOT 9
- MIT license text may be incorrect HOT 6
- Bad text display
- Corrupted rendering of Verovio SVG output HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpvectors.