Ejemplo n.º 1
0
        internal void AddNewFrame(DefGroupItem defItem, HdPakFrame frame, int targetFrameWidth, int targetFrameHeight, double scale)
        {
            var framedImage = new FramedImageViewModel(defItem, frame.Image, Data.Count == 0 ? null : Data[0].FramedImage, scale)
            {
                FrameWidth  = targetFrameWidth,
                FrameHeight = targetFrameHeight
            };

            AddNewFrame(framedImage);
        }
Ejemplo n.º 2
0
        public FramedImageViewModel(DefGroupItem defSource, MagickImage image, FramedImageViewModel firstFrame, double scale)
        {
            DefSource  = defSource;
            Image      = image;
            FirstFrame = firstFrame ?? this;

            FrameWidth  = 200;
            FrameHeight = 200;

            ImageStream = Image.ToByteArray();

            Scale = scale;
        }