aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-02 11:11:45 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-02 11:12:37 +0100
commit4af2d6a0f4d5f5c8c39ad053a3ddadfa0402a92b (patch)
treea2ecf096dae0c9dbe1038eb364bf3f650cb43955 /src/GraphicObjects/GraphicObject.cs
parent86238b1031ff73dc5f4be48033ba674189224e3a (diff)
removed background image
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index dedbe931..99513f14 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -360,32 +360,6 @@ namespace Crow
{ get { return bmp == null ?
false :
true; } }
- [XmlAttributeAttribute()][DefaultValue(null)]
- public virtual string BackgroundImagePath {
- get { return _backgroundImagePath; }
- set {
- _backgroundImagePath = value;
- if (string.IsNullOrEmpty(_backgroundImagePath))
- return;
-
- if (_backgroundImagePath.EndsWith (".svg", true, System.Globalization.CultureInfo.InvariantCulture))
- _backgroundImage = new SvgPicture ();
- else
- _backgroundImage = new BmpPicture ();
-
- _backgroundImage.LoadImage (_backgroundImagePath);
- //_backgroundImage.Scale = false;
- registerForGraphicUpdate ();
- }
- }
- [XmlAttributeAttribute()]
- public virtual Picture BackgroundImage {
- get { return _backgroundImage; }
- set {
- _backgroundImage = value;
- registerForGraphicUpdate ();
- }
- }
[XmlAttributeAttribute()][DefaultValue("0;0")]
public virtual Size MaximumSize {
get { return _maximumSize; }
@@ -419,11 +393,6 @@ namespace Crow
}
#endregion
- /// <summary>
- /// allow selection of svg subobject to draw in goml, should be improved
- /// ex: allow access to backgroundImage.subimg from goml
- /// </summary>
- public string BackImgSub = null;
/// <summary>
/// Loads the default values from XML attributes default
@@ -741,11 +710,6 @@ namespace Crow
gr.SetSourceColor(Background);
CairoHelpers.CairoRectangle(gr,rBack,_cornerRadius);
gr.Fill ();
-
- if (BackgroundImage == null)
- return;
-
- BackgroundImage.Paint (gr, rBack, BackImgSub);
}
/// <summary>