Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Need Some Java Help
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
DRM
I Choose Noise



Registered: Mar 2001
Location: Somewhere where it's raining
Dunno Need Some Java Help

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


___________________
EDM Blog
Hybrid - Break My Soul + Mixes
BT - These Hopeful Machines
Gorillaz - Stylo

Old Post Dec-02-2004 13:26 
Click Here to See the Profile for DRM Click here to Send DRM a Private Message Add DRM to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:
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.

Old Post Dec-02-2004 17:55  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DRM
I Choose Noise



Registered: Mar 2001
Location: Somewhere where it's raining

yeah i think your right on the logging the data using each bit into an array. as far as i know imageio from the awt class does that for you.

i will have to google the huffman forumular as i dont have it.

stop totally lost on how to go about it tho


___________________
EDM Blog
Hybrid - Break My Soul + Mixes
BT - These Hopeful Machines
Gorillaz - Stylo

Old Post Dec-02-2004 19:03 
Click Here to See the Profile for DRM Click here to Send DRM a Private Message Add DRM to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Streakfury
Angrily Running Naked



Registered: Mar 2002
Location: 11th Dimension

WebDevForums


___________________

Old Post Dec-02-2004 21:42  England
Click Here to See the Profile for Streakfury Click here to Send Streakfury a Private Message Visit Streakfury's homepage! Add Streakfury to your buddy list Report this Post Reply w/Quote Edit/Delete Message
chojin
<3 Leah



Registered: Oct 2002
Location: Bedfordshire, England

i'll probably also need help. if anyone is a java nut and fancies doing it for me/some of it, much appreciated

haha

http://chojin.devour.org/ProjectHolidays.doc

lot simpler than the above one too


___________________
|Mixes| - All past mixes

Old Post Dec-02-2004 23:28  England
Click Here to See the Profile for chojin Click here to Send chojin a Private Message Visit chojin's homepage! Add chojin to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:

ok cool .. the whole awt thing and picking up the image should be simple for you .. you sound like you know how to pick up the image using awt objects .. i don't know much about the awt classes, so i can't really help you out there ..

but of course the biggest hurdle is the huffman code .. any mathematics majors in these forums by the way?? they should know more about these complex algorithms .. hahhaha ..
are you taking some kind of stegonography class or something? .. stego stuff is cool, but it can also be very brain damaging when working with the algorithms ..

help here

this can help you somewhat ..

quote:
Originally posted by chojin
i'll probably also need help. if anyone is a java nut and fancies doing it for me/some of it, much appreciated
haha
http://chojin.devour.org/ProjectHolidays.doc
lot simpler than the above one too


are you sure this is your assignment? .. i'll volunteer to do some of your backbone work (not all .. ) .. just tell me when it is dued, and i will give you a hand on this .. sounds like something very big to handle for one person ..

Old Post Dec-03-2004 01:50  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Need Some Java Help
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackid??? please..digweed use this song in transitions!! [2008] [0]

Click here to listen to the sample!Pause playbackN.O.I.P. - Be Good [2005]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 12:21.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!