private void btnCompressionBlocks_Click(object sender, EventArgs e) { mainImage.CompressionBlocks((int)Math.Pow(2, cbComBlocksSize.SelectedIndex + 2)); }