Add interpolation parameter to resize_to_po2()

Image::resize_to_po2() now takes an optional p_interpolation parameter
that it passes directly to resize() with default value INTERPOLATE_BILINEAR.
This commit is contained in:
Theogen Ratkin 2020-12-18 10:14:55 -04:00
parent 68117f5e75
commit 46ea6750b4
3 changed files with 8 additions and 6 deletions

View file

@ -244,7 +244,7 @@ public:
/**
* Resize the image, using the preferred interpolation method.
*/
void resize_to_po2(bool p_square = false);
void resize_to_po2(bool p_square = false, Interpolation p_interpolation = INTERPOLATE_BILINEAR);
void resize(int p_width, int p_height, Interpolation p_interpolation = INTERPOLATE_BILINEAR);
void shrink_x2();
bool is_size_po2() const;