You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would ask this over in SixLabors/ImageSharp.Drawing as I think it belongs there, but this is not a bug, and the other links give me a 404 error.
I have Library that Build Charts and Renders out SVG actually XML See Example LinearChart2 .txt
My next task is to convert to this to an PNG image .
Images and SVG are alike in the sense that complex images are made up of simple images and so is SVG.
I have a common Interface called ITransform and I would like to add a ToImage method on it and all SVG objects (Circle, Rectangle, Line) implement it in its own object.
My area that I need help with using your sample code:
_image = new Image<Rgb48>(Configuration.Default, width, height);
Star y = new Star(x: 100.0f, y: 100.0f, prongs: 5, innerRadii: 20.0f, outerRadii: 30.0f);
_image.Mutate(x => x.Fill(Color.Red, y)); // fill the star with red
Can I have a Parent Image that collects all the children? Might be ImageFrameCollection but documentation says no
For example I would
var line= new SVGLine();
///Fill in line details
var circle= new SVGCircle();
///Fill in circle details
_parentImage.ChildrenImage.Add(circle.ToImage());
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would ask this over in SixLabors/ImageSharp.Drawing as I think it belongs there, but this is not a bug, and the other links give me a 404 error.
I have Library that Build Charts and Renders out SVG actually XML See Example
LinearChart2 .txt
My next task is to convert to this to an PNG image .
Images and SVG are alike in the sense that complex images are made up of simple images and so is SVG.
I have a common Interface called ITransform and I would like to add a ToImage method on it and all SVG objects (Circle, Rectangle, Line) implement it in its own object.
My area that I need help with using your sample code:
Can I have a Parent Image that collects all the children? Might be ImageFrameCollection but documentation says no
For example I would
Beta Was this translation helpful? Give feedback.
All reactions