Image.resizeToPo2

Resizes the image to the nearest power of 2 for the width and height. If square is true then set width and height to be the same. New pixels are calculated using the interpolation mode defined via interpolation constants.

struct Image
@nogc nothrow
void
resizeToPo2
(
in bool square = false
,
in long interpolation = 1
)

Meta