diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-07 04:32:57 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-07 04:32:57 +0100 |
| commit | fd3cf7597b2c3084c41993fe2043a484466c4fa9 (patch) | |
| tree | 7e5ccf6829bf555eb4720a5c7593237caaa0ac5c /src/GraphicObjects/Image.cs | |
| parent | d8e417769988c76a7ebe9adc85c929e815583683 (diff) | |
debug for netcore standards 2
Diffstat (limited to 'src/GraphicObjects/Image.cs')
| -rw-r--r-- | src/GraphicObjects/Image.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GraphicObjects/Image.cs b/src/GraphicObjects/Image.cs index 5960101a..21a83f90 100644 --- a/src/GraphicObjects/Image.cs +++ b/src/GraphicObjects/Image.cs @@ -49,7 +49,7 @@ namespace Crow /// <summary> /// If false, original size will be kept in any case. /// </summary> - [XmlAttributeAttribute][DefaultValue(true)] + [DefaultValue(true)] public virtual bool Scaled { get { return scaled; } set { @@ -66,7 +66,7 @@ namespace Crow /// <summary> /// If image is scaled, proportions will be preserved. /// </summary> - [XmlAttributeAttribute][DefaultValue(true)] + [DefaultValue(true)] public virtual bool KeepProportions { get { return keepProps; } set { @@ -83,7 +83,7 @@ namespace Crow /// <summary> /// Image file path, may be on disk or embedded. Accepts bitmaps or SVG drawings. /// </summary> - [XmlAttributeAttribute] + public string Path { get { return _pic == null ? "" : _pic.Path; } set { @@ -108,7 +108,7 @@ namespace Crow /// Used only for svg images, repaint only node named referenced in SvgSub. /// If null, all the svg is rendered /// </summary> - [XmlAttributeAttribute] + public string SvgSub { get { return _svgSub; } set { @@ -122,7 +122,7 @@ namespace Crow /// Object holding the image data once loaded, may be used directely to pupulate this control without /// specifying a path. /// </summary> - [XmlAttributeAttribute] + public Picture Picture { get { return _pic; } set { @@ -137,7 +137,7 @@ namespace Crow /// Opacity parameter for the image /// </summary> // TODO:could be moved in GraphicObject - [XmlAttributeAttribute()][DefaultValue(1.0)] + [DefaultValue(1.0)] public virtual double Opacity { get { return opacity; } set { |