public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { LinkedImageGraphic s = (LinkedImageGraphic)obj; info.AddBaseValueEmbedded(s, typeof(LinkedImageGraphic).BaseType); info.AddValue("ImagePath", s._imagePath); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { LinkedImageGraphic s = null != o ? (LinkedImageGraphic)o : new LinkedImageGraphic(); info.GetBaseValueEmbedded(s, typeof(LinkedImageGraphic).BaseType, parent); s._imagePath = info.GetString("ImagePath"); return(s); }
protected override void CopyFrom(GraphicBase bfrom) { LinkedImageGraphic from = bfrom as LinkedImageGraphic; if (from != null) { this._imagePath = from._imagePath; this._cachedImage = null == from._cachedImage ? null : (Image)from._cachedImage.Clone(); } base.CopyFrom(bfrom); }
public LinkedImageGraphic(LinkedImageGraphic from) : base(from) { }
public LinkedImageGraphic(LinkedImageGraphic from) : base(from) // all is done here, since CopyFrom is virtual! { }