Table of Contents

Method RoundUpLog2N

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

RoundUpLog2N(int, int)

Rounds x to a multiple of 2^log2N which is greater than or equal to x.

public static int RoundUpLog2N(int x, int log2N)

Parameters

x int
log2N int

Returns

int