Пример #1
0
        public static IEnumerable <Image> CreateAnimation(List <Parameter> descriptor, Bitmap[] images, IEnumerable <WatchState> states, Size size)
        {
            Models.Elements.WatchFace previewWatchFace = new Models.Elements.WatchFace(descriptor);

            foreach (var watchState in states)
            {
                using (var image = CreateFrame(previewWatchFace, images, watchState, size))
                {
                    yield return(image);
                }
            }
        }
Пример #2
0
        public static IEnumerable <Image> CreateAnimation(List <Parameter> descriptor, Bitmap[] images,
                                                          IEnumerable <WatchState> states, int CenterOffsetX, int CenterOffsetY, byte[] modelByte)
        {
            CenterOffset.X  = CenterOffsetX;
            CenterOffset.Y  = CenterOffsetY;
            Model.modelByte = modelByte;

            var previewWatchFace = new Models.Elements.WatchFace(descriptor);

            foreach (var watchState in states)
            {
                using (var image = CreateFrame(previewWatchFace, images, watchState))
                {
                    yield return(image);
                }
            }
        }
Пример #3
0
        public static Image CreateImage(IEnumerable <Parameter> descriptor, Bitmap[] images, WatchState state)
        {
            var previewWatchFace = new Models.Elements.WatchFace(descriptor);

            return(CreateFrame(previewWatchFace, images, state));
        }