BufferedImage problem

Discussion in 'Java' started by ajay.ravichandran@gmail.com, Jan 8, 2005.

  1. Guest

    Hi

    I have a small problem that i am unable to solve. I have quantized a
    jpg image and reduced the number of colors. It is currently as a
    BufferedImage object. Now i want to save this quantized image as a jpg
    file. I am using ImageIO api available in java, and i am successful
    with that. But when i decide to read this jpg file and compare it with
    the quantized BufferedImage object, i am not able to retain the
    original quantized rgb values. Does anyone have any suggestions how i
    could retain the original values and also why the original values are
    not being retained. I dont want to have the image in any other format
    like gif or png. Is it possible to do this using jpg itself
    Thanks

    Ajay
     
    , Jan 8, 2005
    #1
    1. Advertising

  2. Ann Guest

    <> wrote in message
    news:...
    > Hi
    >
    > I have a small problem that i am unable to solve. I have quantized a
    > jpg image and reduced the number of colors. It is currently as a
    > BufferedImage object. Now i want to save this quantized image as a jpg
    > file. I am using ImageIO api available in java, and i am successful
    > with that. But when i decide to read this jpg file and compare it with
    > the quantized BufferedImage object, i am not able to retain the
    > original quantized rgb values. Does anyone have any suggestions how i
    > could retain the original values and also why the original values are
    > not being retained. I dont want to have the image in any other format
    > like gif or png. Is it possible to do this using jpg itself
    > Thanks
    >
    > Ajay


    So you 1) reduced the number of colors and 2) not able to retain the
    original quantized rgb values.
     
    Ann, Jan 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Szymanski
    Replies:
    0
    Views:
    864
    Peter Szymanski
    Jul 9, 2003
  2. Eel

    Copying BufferedImage

    Eel, Jul 9, 2003, in forum: Java
    Replies:
    2
    Views:
    6,977
  3. hz010c1877

    Read PPM images as BufferedImage

    hz010c1877, Aug 14, 2003, in forum: Java
    Replies:
    1
    Views:
    6,913
    John C. Bollinger
    Aug 14, 2003
  4. Raj
    Replies:
    2
    Views:
    1,903
  5. Replies:
    2
    Views:
    360
    Steve W. Jackson
    Feb 26, 2007
Loading...

Share This Page