Results 1 to 2 of 2

Thread: Compress and draw multy dimensional array

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    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
  •  



Click Here to Expand Forum to Full Width