public override void ParseXml(XmlElement aNode) { base.ParseXml(aNode); if (aNode.HasChildNodes) { for (int i = 0; i < aNode.ChildNodes.Count; i++) { if (aNode.ChildNodes[i].Name == "img") { FImage = new Bitmap(HC.Base64ToGraphic(aNode.ChildNodes[i].InnerText)); } else if (aNode.ChildNodes[i].Name == "shapes") { FShapeManager.ParseXml(aNode.ChildNodes[i] as XmlElement); } } } else { FImage = (Bitmap)HC.Base64ToGraphic(aNode.InnerText); } DoImageChange(this); }
public override void ParseXml(XmlElement aNode) { base.ParseXml(aNode); FGifImage = HC.Base64ToGraphic(aNode.InnerText); this.Width = FGifImage.Width; this.Height = FGifImage.Height; FAnimate = true; }
public override void ParseXml(System.Xml.XmlElement aNode) { base.ParseXml(aNode); HC.Base64ToGraphic(aNode.InnerText, FImage); DoImageChange(this); }