public ImageSize(uint width, uint height)
{
if (!checkIsPower2(width))
new FormatException("Invalid width value, must be power of 2");
if (!checkIsPower2(width))
new FormatException("Invalid height value, must be power of 2");
if (width == 0)
width = 1;
if (height == 0)
height = 1;
this.width = width;
this.height = height;
}