Exemple #1
0
        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);
        }
Exemple #2
0
        public void AddImage(MNReferencedImage ri)
        {
            MNLazyImage li = new MNLazyImage(Document);

            li.Image = ri;
            Objects.Add(new StringItem(li));
        }
Exemple #3
0
 public SMImageButton(MNPage p) : base(p)
 {
     ImgA              = new MNLazyImage(p.Document);
     Evaluation        = MNEvaluationType.None;
     ContentArangement = SMContentArangement.ImageOnly;
     Clickable         = true;
     rt = new SMRichText(this);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public MNLazyImage(MNLazyImage li)
 {
     Document = li.Document;
     Image    = li.Image;
     image_id = Image.Id;
 }
Exemple #6
0
 //
 // image properties
 //
 public StringItem(MNLazyImage lazyImage)
 {
     this.Image = lazyImage;
 }
Exemple #7
0
 public SMMemoryGame(MNPage page) : base(page)
 {
     Rows      = 2;
     Columns   = 2;
     BackImage = new MNLazyImage(page.Document);
 }
Exemple #8
0
 public SMMemoryGameCard(MNDocument doc)
 {
     Image = new MNLazyImage(doc);
 }