diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-03 08:53:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-05-03 08:53:44 +1000 |
commit | 95f6babd5e2ccc66bf7e97f74f804ddac4cf2fef (patch) | |
tree | 595c5cff8fa10c16d09be8dd174d707cfb99b199 /source/core/StarImageProcessing.hpp | |
parent | de3d099d51126f27d553e6b33ba47e0825a3a01a (diff) |
scaling functions now warn instead of crashing with negative scales
Diffstat (limited to 'source/core/StarImageProcessing.hpp')
-rw-r--r-- | source/core/StarImageProcessing.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarImageProcessing.hpp b/source/core/StarImageProcessing.hpp index 8316d18..4022d38 100644 --- a/source/core/StarImageProcessing.hpp +++ b/source/core/StarImageProcessing.hpp @@ -10,9 +10,9 @@ STAR_CLASS(Image); STAR_EXCEPTION(ImageOperationException, StarException); -Image scaleNearest(Image const& srcImage, Vec2F const& scale); -Image scaleBilinear(Image const& srcImage, Vec2F const& scale); -Image scaleBicubic(Image const& srcImage, Vec2F const& scale); +Image scaleNearest(Image const& srcImage, Vec2F scale); +Image scaleBilinear(Image const& srcImage, Vec2F scale); +Image scaleBicubic(Image const& srcImage, Vec2F scale); StringList colorDirectivesFromConfig(JsonArray const& directives); String paletteSwapDirectivesFromConfig(Json const& swaps); |