From 2eca1b2eb9bed4fc8090df28402fde1b1dcd7351 Mon Sep 17 00:00:00 2001 From: Clem Cords Date: Thu, 8 Feb 2024 18:30:41 +0100 Subject: [PATCH] added scaling default value, #70 --- src/Mousetrap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mousetrap.jl b/src/Mousetrap.jl index fc3bfa0..3837be1 100644 --- a/src/Mousetrap.jl +++ b/src/Mousetrap.jl @@ -1897,7 +1897,7 @@ module Mousetrap @export_function Image get_n_pixels Int64 @export_function Image get_size Vector2i - function as_scaled(image::Image, size_x::Integer, size_y::Integer, interpolation::InterpolationType) + function as_scaled(image::Image, size_x::Integer, size_y::Integer, interpolation::InterpolationType = INTERPOLATION_TYPE_TILES) return Image(detail.as_scaled(image._internal, UInt64(size_x), UInt64(size_y), interpolation)) end export as_scaled