Table of Contents

Method Pow2RoundDown

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

Pow2RoundDown(int)

Returns the largest power of 2 which is less than or equal to x, or 0 if x is 0, for positive values.

public static int Pow2RoundDown(int x)

Parameters

x int

Returns

int