Compress and draw multy dimensional array
Hello, guys is there a way to compress a array with size 20x20 into 10x10 without losing data , I am talking about byte[,].
Мy other question is how can I determine in byte[,] how many line's I have , for example :
1111111111111
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
1000000000000
The result here should be two line's.
Re: Compress and draw multy dimensional array
Why exactly should the result there be two lines? We can't read minds so you'll have to actually tell us.
As for compressing the data, I'm not aware of any way that will specifically compress 20x20 bytes down to 10x10 but you could simply flatten the array out to one dimension and then use a GZipStream to compress it as much as possible.