public AnimatedCellBitmapSetLayers( AnimatedCellBitmapSet layerOne, AnimatedCellBitmapSet layerTwo ) { LayerOne = layerOne; LayerTwo = layerTwo.ToQueryResult(); _rotatedCloneLazy = new Lazy <AnimatedCellBitmapSetLayers>(() => new AnimatedCellBitmapSetLayers(LayerOne.Generate90DegreesRotatedClone(), LayerTwo.WithResultIfHasMatch(x => x.Generate90DegreesRotatedClone()) )); }
public CellBitmap GetFrame(AnimatedCellBitmapSet bitmapSet) => GetFrame(bitmapSet.Bitmaps, bitmapSet.Delay);