mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
fix: 优化项目代码
1、修复部分字幕下载问题 2、修复自定义aria2设置出错问题
This commit is contained in:
15
DownKyi/CustomControl/AsyncImageLoader/IAsyncImageLoader.cs
Normal file
15
DownKyi/CustomControl/AsyncImageLoader/IAsyncImageLoader.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
namespace DownKyi.CustomControl.AsyncImageLoader;
|
||||
|
||||
public interface IAsyncImageLoader : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Loads image
|
||||
/// </summary>
|
||||
/// <param name="url">Target url</param>
|
||||
/// <returns>Bitmap</returns>
|
||||
public Task<Bitmap?> ProvideImageAsync(string url);
|
||||
}
|
||||
Reference in New Issue
Block a user