-
Jun 16th, 2012, 07:59 AM
#1
Thread Starter
Addicted Member
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.
-
Jun 16th, 2012, 11:00 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|