CSharpImageLibrary.DDS.DDSGeneral.CheckSize_DXT C# (CSharp) Method

CheckSize_DXT() public static method

Determines whether an image size is suitable for DXT compression. Must be a power of 2 (technically just divisible by 4, but I'm lazy)
public static CheckSize_DXT ( int width, int height ) : bool
width int Width of image.
height int Height of image.
return bool
        public static bool CheckSize_DXT(int width, int height)
        {
            return UsefulThings.General.IsPowerOfTwo(width) && UsefulThings.General.IsPowerOfTwo(height);
        }