Skip to content

Commit

Permalink
added scaling default value, #70
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemapfel committed Feb 8, 2024
1 parent b5dc8c2 commit 2eca1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mousetrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2eca1b2

Please sign in to comment.