Results 1 to 6 of 6
  1. #1
    shishirg is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Question how to save image to disk after using pixelgrabber

    hey guys...
    hiii
    i stucked in a prob...
    i used pixelgrabber... to extraxt RGB pixels....
    and later i recreated int 1-D array of pixel values.
    But now i want to save ( i read JPG image and a GIF image ) those pixel values as image on disk.
    but i am unable to find such stream for JPG and GIF images.

    plz help me as soon as possible
    if possible provide a example.

    thanx
    wid regards
    shishir

  2. #2
    shishirg is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Question access denied exception.... while writing image

    hey guys....
    I was doing... my proj on steganography over images.
    i used PIXELGRABBER to read RGB values of the image.
    then i modified the bits and recreated the the integer pixel array.
    now i want to save the pixel values as image on my disk.
    then i used BUFFEREDIMAGE class and its funtion setRGB to set the pixel array values o the bufferedimage object and theni used ImageIO.wite to write it as image.

    now the problem is it gives runtime error as access denied to the image file

    what should i do to save the pixel values as image.

    help me guys as soon as possible.

  3. #3
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    shishrig. Multiple posts such as you've done are not allowed. Please read the FAQ before you post again.

    This thread has been merged with another just like it.
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  4. #4
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    hey guys...
    hiii
    i stucked in a prob...
    i used pixelgrabber... to extraxt RGB pixels....
    and later i recreated int 1-D array of pixel values.
    But now i want to save ( i read JPG image and a GIF image ) those pixel values as image on disk.
    but i am unable to find such stream for JPG and GIF images.
    Is this an applet?

    regards,
    sukatoa

  5. #5
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    396
    Rep Power
    6

    Default write an image

    you can use bufferedimage class for create a image object and then write that object on disk using image.io.write() in any format as your wish.
    Mak
    (Living @ Virtual World)

  6. #6
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default Zombie Alert !!!

    Danger Will Robinson, Danger !!!


    makpandian... you are ressurecting a post that is over 10 months old....

    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

Similar Threads

  1. how to save image as jpg?
    By katie in forum New To Java
    Replies: 4
    Last Post: 04-15-2010, 10:07 AM
  2. Writing text into an image and save it
    By elcapi in forum Java 2D
    Replies: 6
    Last Post: 09-18-2009, 05:47 PM
  3. copy image/imageicon into a file on disk
    By archanajathan in forum Advanced Java
    Replies: 2
    Last Post: 11-22-2007, 06:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •