Table of Contents

Method Pow2RoundUp

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

Pow2RoundUp(int)

Returns the smallest power of 2 which is greater than or equal to x, for positive values less than or equal to 2^30.

public static int Pow2RoundUp(int x)

Parameters

x int

Returns

int