Support .cur and .ani cursor images

This commit is contained in:
ema
2025-01-02 02:39:58 +08:00
parent 8a2a0df832
commit bfa28fc5fa
3 changed files with 391 additions and 16 deletions

View File

@@ -196,6 +196,18 @@ internal class ImageMagickProvider : AnimationProvider
return new TransformedBitmap(image, transforms);
}
protected bool IsImageMagickSupported(string path)
{
try
{
return new MagickImageInfo(path).Format != MagickFormat.Unknown;
}
catch
{
return false;
}
}
}
file static class Extension