Files
Shrlalgo.RvKits/WPFluent/Controls/BitmapIcon/BitmapImageProvider.cs

19 lines
397 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
namespace WPFluent.Controls;
internal class BitmapImageProvider(Uri path) : AnimationProvider(path)
{
public override void Dispose()
{
///
}
public override Task<BitmapSource> GetRenderedFrame(int index)
{
return Task.FromResult<BitmapSource>(new BitmapImage(Path));
}
}