Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Return the rgb values from a jpg image

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Return the rgb values from a jpg image

    Hi,
    Please I am new to java image. I created an image by first filling random numbers for each pixel (R value, G value and B value) then I create an image Icon. What I have noticed is that when I retreuived the RGB values again from the buffer before writing to a file the values for RGB was correct, but after writing them to a file and then open and read these values I got something different. I need to retreive exactly the same values that I choosed for each pixel!!!

    I greately appreciate your help.
    Note: Please let me know if you would like me to send you the code.

    Many thanks
    Ahmad


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,667
    Thanks
    45
    Thanked 1,960 Times in 1,934 Posts

    Default Re: Return the rgb values from a jpg image

    but after writing them to a file and then open and read these values I got something different.
    Can you show the code for how you are writing to a file and reading them.

Similar Threads

  1. Replies: 2
    Last Post: February 14th, 2011, 04:36 PM
  2. how to return value ..
    By gr8mind in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 11th, 2011, 04:27 AM
  3. return a day of the year
    By lipry in forum Java Theory & Questions
    Replies: 3
    Last Post: January 23rd, 2011, 04:10 PM
  4. Pixel Alteration in an image/image rotation
    By bguy in forum Java Theory & Questions
    Replies: 3
    Last Post: November 1st, 2009, 09:50 AM
  5. Error of "Class has no return statement"
    By mdstrauss in forum What's Wrong With My Code?
    Replies: 7
    Last Post: August 2nd, 2009, 12:00 PM

Tags for this Thread