mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-12 13:41:54 +00:00
Merge DLCManager into 'JavaResourcePackImporter'
This commit is contained in:
@@ -274,9 +274,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;
|
||||
|
||||
Reference in New Issue
Block a user