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:
parent
68117f5e75
commit
46ea6750b4
3 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue