• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Editing then Saving Images

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know how to edit Images, and then save them while within an applet. I would like to do this without using FileSaver(). I would like to try FTP but I am not positive how that works.
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Editing images is a whole big topic. The short answer is, you need to build or buy a special (set of) class to do that.
I'm not familiar with the FileSaver() class, what package is it? hy can't you use it? If you can't save the file locally (for security reasons, for example), simply return it to the server and save it there. Would that work?getting it back to the server simply requires opening a socket back to the server, which applets should be able to do.

--Mark
 
Thomas Franchetti
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FileSaver() is part of the ImageProcessing Class. I couldn't use it due to permissions. I have to figure out how to make the image one, like drawing on top of an image isn't editing it, I have to use some type of I/O to manipulate pixels, but I am not positive how...this is my first time using java.
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Editing image using a programming language is not that easy. Unlike photoshop or CorelDraw, you need to write the codes performed by them. To get into this, you need basic knowledge about a digital image(color or gray). Many times, certain package you use may work on particular set of images but not on others. It is due to the process of encoding an image. Some Image processing book may give you some basic idea how to edit an image.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found some good examples of a GIF encoder on www.acme.com
There is a JPEG encoder as well, available from Sun, Documentation here.
While you may have some limitations, you will be able to load an image, use the graphics commands to manipulate it, then encode it as a JPEG or GIF.
Hope this helps.
------------------
Tom McComb
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic