Core - Massive DLCManager changes

This commit is contained in:
miku-666
2025-12-14 04:02:14 +01:00
parent c2cf85df70
commit 08dcfbb288
15 changed files with 478 additions and 129 deletions

View File

@@ -273,9 +273,9 @@ namespace PckStudio.Core.Extensions
return bitmapResult;
}
public static Image Interpolate(this Image source, Image target, double delta)
public static Image Interpolate(this Image source, Image target, float delta)
{
delta = MathExtensions.Clamp(delta, 0.0, 1.0);
delta = MathExtensions.Clamp(delta, 0.0f, 1.0f);
if (source is not Bitmap baseImage || target is not Bitmap overlayImage ||
source.Width != target.Width || source.Height != target.Height)
return source;