Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 pic creator
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
StealthArcher




PostPosted: Thu Nov 15, 2007 9:38 pm   Post subject: Re: pic creator

Thats just it.

Storing each RGB value as a binary integer, makes the file almost 10x the size of the original bmp.
Storing a pixels each rgb value as a modified integer, using 9 as a split, makes it only about 5% bigger, but converting a 300x300 photo takes almost 20 minutes.

I attempted to use strings, a 100x100 photo wound up as a 30 mb tbm file......

So i thought about using boolean like basic binary, so as if first one is true then add 1 to r value and if the next 2 and then 4 and so on. But booleans are a byte each, not a bit, so I wound up with the same problem, of a ridiculous oversized file compared to the original bmp.

I was thinking of reals and storing as many values as possible, but that as calculated, makes them too big AGAIN......

So, I'm out of ideas, and I'm asking you.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: