Scene Class
A drawing made of primitives (shapes, paths, texts, groups), independent of the output format. Charts and diagrams create it (ISceneSource.CreateScene); SvgSceneRenderer and the renderer of Meziantou.Framework.Imaging.VectorGraphics draw it.
public sealed class SceneRemarks
The coordinates are in pixels, with the origin at the top-left corner and the y axis pointing down. Angles are in degrees, clockwise.
Constructors
| Name | Description |
|---|---|
| Scene(double, double, string) | Initializes a new instance of the Scene class. |
Scene(double, double, string)
Scene.csProperties
| Name | Description |
|---|---|
| Background | Gets or sets the background, or null for a transparent background. |
| Description | Gets or sets the accessible description of the drawing. |
| FontFamily | Gets the CSS font-family of the texts. |
| Fonts | Gets or sets the fonts that draw the texts, or null to let each renderer choose them. Set it to the fonts the texts were measured with (ITextMeasurer.Fonts), so they are drawn with the same fonts. |
| Height | Gets the height of the drawing. |
| Root | Gets the elements of the drawing, drawn in order. |
| Title | Gets or sets the accessible name of the drawing, usually its title. |
| Width | Gets the width of the drawing. |
Background
Scene.csGets or sets the background, or null for a transparent background.
public SceneColor? Background { get; set; }Property value
Description
Scene.csFontFamily
Scene.csFonts
Scene.csGets or sets the fonts that draw the texts, or null to let each renderer choose them. Set it to the fonts the texts were measured with (ITextMeasurer.Fonts), so they are drawn with the same fonts.
public SceneFontCollection? Fonts { get; set; }