Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 3.78 KB

SvgImage_Readme.md

File metadata and controls

69 lines (56 loc) · 3.78 KB

SvgImage

The SvgImage control is a control that can render a SVG drawing as image.

Example for SvgImage usages

<atc:SvgImage
    ControlSizeType="ControlSizeType.ContentToSizeStretch"
    Source="/Atc.Wpf.Sample;component/Assets/eggeaster.svg" />
Enum ControlSizeType Description
None The image is not scaled. The image location is translated so the top left corner of the image bounding box is moved to the top left corner of the image control.
ContentToSizeNoStretch The image is scaled to fit the control without any stretching. Either X or Y direction will be scaled to fill the entire width or height.
ContentToSizeStretch The image will be stretched to fill the entire width and height.
SizeToContent The control will be resized to fit the un-scaled image. If the image is larger than the maximum size for the control, the control is set to maximum size and the image is scaled.

Properties

| Property | Type | Description | |---------------------|-------------------------------------------------------------------------------------------------| | Background | Brush | Background brush | | ControlSizeType | ControlSizeType | How to stretched/resize/scale the drawing | | Source | string | The relative URL - For assembly component, rember to set "Build action=Resource" | | FileSource | [TODO] | [TODO] | | ImageSource | [TODO] | [TODO] | | UseAnimations | [TODO] | [TODO] | | OverrideColor | [TODO] | [TODO] | | OverrideStrokeColor | [TODO] | [TODO] | | OverrideStrokeWidth | [TODO] | [TODO] | | CustomBrushes | [TODO] | [TODO] | | ExternalFileLoader | [TODO] | [TODO] |

Methods

Method Description
SetImage Alternativ to Source, a method that by string, Stream, Drawing render the content

Abbreviations

SVG - Scalable Vector Graphics

W3C Specification for SVG

W3C - Scalable Vector Graphics (SVG) Tiny 1.2 Specification

Section Table of Contents
1 Introduction
2 Concepts
3 Rendering Model
4 Basic Data Types
5 Document Structure
6 Styling
7 Coordinate Systems, Transformations and Units
8 Paths
9 Basic Shapes
10 Text
11 Painting: Filling, Stroking, Colors and Paint Servers
12 Multimedia
13 Interactivity
14 Linking
15 Scripting
16 Animation
17 Fonts
18 Metadata