Hi Julia, You can just read the image into a BufferedImage, then use any of the Java drawing commands to write text or graphics on it, then use com.sun.image.codec methods to convert the BufferedImage to whatever format you want, then send it.
You can read the image in from disk or you can grab it from the page in memory by saving it in the session, for example. Rick > Hello everyone: > > I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. > > Any idea of how can I do this? Or how can jsp help to do this? > > Thanks a lot, > > Julia =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
