Esempio n. 1
0
        public object Clone()
        {
            AnimationPattern ap = new AnimationPattern();
            ap.FrameCount = this.FrameCount;
            ap.FrameSize = this.FrameSize;
            ap.FramesPerLine = this.FramesPerLine;
            ap.ImageSize = this.ImageSize;
            ap.Pattern = this.Pattern;

            return ap;
        }
Esempio n. 2
0
 public Animation(SerializationInfo info, StreamingContext context)
 {
     Frames = info.GetValue("Frames", typeof(List<AnimationFrame>)) as List<AnimationFrame>;
     Pattern = info.GetValue("Pattern", typeof(AnimationPattern)) as AnimationPattern;
     Name = info.GetString("Name");
 }
Esempio n. 3
0
        public void SetPattern(Image img)
        {
            Pattern = new AnimationPattern();

            // TODO : Change default value into parameters
            Pattern.SetPattern(img, new Size(192, 192));
        }