Click or drag to resize

ImageResizeToPo2 Method

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 ImageInterpolation constants.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void ResizeToPo2(
	bool square = false,
	ImageInterpolation interpolation = ImageInterpolation.Bilinear
)

Parameters

square (Optional)
Type: SystemBoolean

[Missing <param name="square"/> documentation for "M:Godot.Image.ResizeToPo2(System.Boolean,Godot.Image.Interpolation)"]

interpolation (Optional)
Type: GodotImageInterpolation

[Missing <param name="interpolation"/> documentation for "M:Godot.Image.ResizeToPo2(System.Boolean,Godot.Image.Interpolation)"]

See Also