public override bool Load(RSFileReader br) { if (base.Load(br)) { Objects.Clear(); byte b; while ((b = br.ReadByte()) != 0) { switch (b) { case 10: Orientation = (SMTextDirection)br.ReadInt32(); break; case 20: MNLazyImage li = new MNLazyImage(Document); li.ImageId = br.ReadInt64(); Objects.Add(new StringItem(li)); break; case 21: string txt = br.ReadString(); Objects.Add(new StringItem(txt)); break; default: break; } } return(true); } return(false); }
public void AddImage(MNReferencedImage ri) { MNLazyImage li = new MNLazyImage(Document); li.Image = ri; Objects.Add(new StringItem(li)); }
public SMImageButton(MNPage p) : base(p) { ImgA = new MNLazyImage(p.Document); Evaluation = MNEvaluationType.None; ContentArangement = SMContentArangement.ImageOnly; Clickable = true; rt = new SMRichText(this); }
public SMImage(MNPage p) : base(p) { Img = new MNLazyImage(p.Document); ContentScaling = SMContentScaling.Fit; Evaluation = MNEvaluationType.Inherited; DroppedTag = ""; DroppedImage = null; DroppedText = ""; ContentArangement = SMContentArangement.ImageOnly; SourceOffsetX = 50; SourceOffsetY = 50; rt = new SMRichText(this); }
public MNLazyImage(MNLazyImage li) { Document = li.Document; Image = li.Image; image_id = Image.Id; }
// // image properties // public StringItem(MNLazyImage lazyImage) { this.Image = lazyImage; }
public SMMemoryGame(MNPage page) : base(page) { Rows = 2; Columns = 2; BackImage = new MNLazyImage(page.Document); }
public SMMemoryGameCard(MNDocument doc) { Image = new MNLazyImage(doc); }