Convert Image into BufferedImage Need Help!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madumm
    New Member
    • Jan 2007
    • 18

    #1

    Convert Image into BufferedImage Need Help!!

    Hi All;

    String newImagePath = "C:\temp\abc.bm p"
    File filePath = new File(newImagePa th);
    Image watermarkImg = Toolkit.getDefa ultToolkit().ge tImage(filePath .toURL());

    Any how i want convert this file in the "newImagePa th " to a BufferedImage.

    I tried to create a Image object and then convert into BufferedImage but it didn't work.

    Pls give your suggessions
    Thanks
    madumm
Working...