public static byte[] Uncompress(byte[] data, int align = 4) { using (var stream = new MemoryStream(data)) { return(RleCompress.Uncompress(stream, align)); } }
private static byte[] Uncompress(Stream stream, int height, int width, int align = 4) { var realLength = height * width * align; return(RleCompress.Uncompress(stream, align, realLength)); }