public AnimatedCellBitmapSetLayers(
            AnimatedCellBitmapSet layerOne,
            AnimatedCellBitmapSet layerTwo
            )
        {
            LayerOne = layerOne;
            LayerTwo = layerTwo.ToQueryResult();

            _rotatedCloneLazy = new Lazy <AnimatedCellBitmapSetLayers>(() =>
                                                                       new AnimatedCellBitmapSetLayers(LayerOne.Generate90DegreesRotatedClone(),
                                                                                                       LayerTwo.WithResultIfHasMatch(x => x.Generate90DegreesRotatedClone())
                                                                                                       ));
        }
Exemple #2
0
 public CellBitmap GetFrame(AnimatedCellBitmapSet bitmapSet) => GetFrame(bitmapSet.Bitmaps, bitmapSet.Delay);