|
Re: Need Some Java Help
| quote: | Originally posted by DRM
I am working on some java for uni and i aint got a clue so wondering if any1 can help. Basically i need to make a program that can read an image using awt, display it on the screen, put it in an array, compress it using huffman coding and then write that to a file and also be able to reverse the compression.
If any1 can help with all or any of that i would be eternily grateful |
i don't know if this helps you or not, but i believe that you just create an array of byte data type bits to read each bit in the image. Then you can apply the Huffman code to the array to apply the compression.
Do you have the formula for the Huffman code? i dont know it by heart. i have books on it, but you can also google it. i had to do a dumb paper on the effects of the Huffman code on images compared to other compression algorithms.
|