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

            li.Image = ri;
            Objects.Add(new StringItem(li));
        }
예제 #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);
 }
예제 #4
0
파일: SMImage.cs 프로젝트: gopa810/Rambha
 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);
 }
예제 #5
0
 public MNLazyImage(MNLazyImage li)
 {
     Document = li.Document;
     Image    = li.Image;
     image_id = Image.Id;
 }
예제 #6
0
 //
 // image properties
 //
 public StringItem(MNLazyImage lazyImage)
 {
     this.Image = lazyImage;
 }
예제 #7
0
 public SMMemoryGame(MNPage page) : base(page)
 {
     Rows      = 2;
     Columns   = 2;
     BackImage = new MNLazyImage(page.Document);
 }
예제 #8
0
 public SMMemoryGameCard(MNDocument doc)
 {
     Image = new MNLazyImage(doc);
 }