Results 1 to 11 of 11
  1. #1
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Smile To open an image file such as Jpeg file using JAva Program

    Hi,
    I m trying to open one JPEG file in MS Paint by a JAVA Program...Can anyone help me,

    Thanks in Advance,
    Mani:)

  2. #2
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    you want this chap!

    Java Code:
    process = new ProcessBuilder("mspaint","yourFileName.jpeg").start();
    i am the future

  3. #3
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    I think even Java Advanced Imaging (JAI) can help u out. I have not tried it, chk and come back if facing any problems.
    To finish sooner, take your own time....
    Nivedithaaaa

  4. #4
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    Thanks for u r reply.....................
    @Niveditha by using JAI i m able to open the image................canu be more specific on it.how to achieve it using mspaint........

  5. #5
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hi,
    I feel you will have to get the image, store it in the form you want virtually and then open it.
    Check this link for more help
    http://www.nanodottek.com/NDT4_08_2006.pdf

    Can anyone else give a better solution?
    To finish sooner, take your own time....
    Nivedithaaaa

  6. #6
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    Thanks Niveditha......

  7. #7
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    its working fine..

  8. #8
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    is there any special commands to open a pplication such as winword

  9. #9
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    Can anyone else give a solution?

  10. #10
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    process = new ProcessBuilder("mspaint","yourFileName.jpeg").star t();

  11. #11
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

Similar Threads

  1. writing to a excel file from java program
    By priyankabhar in forum New To Java
    Replies: 15
    Last Post: 01-17-2014, 01:39 PM
  2. Replies: 0
    Last Post: 04-04-2008, 03:45 PM
  3. Poblem in Compiling a c++ file from a java program...
    By Amit Kr. Mishra in forum New To Java
    Replies: 0
    Last Post: 11-06-2007, 11:41 AM
  4. Regarding conversion of Image file to Video file
    By RamaDeviMsc in forum Advanced Java
    Replies: 0
    Last Post: 06-25-2007, 03:28 PM
  5. Simplest way to read and display a jpeg image
    By Hasan in forum New To Java
    Replies: 1
    Last Post: 05-31-2007, 04:42 PM

Posting Permissions

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