• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

cropping image in servlet

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, guys..
I will make a client-server application using j2me and servlet. Servlet will send an png image as a response to j2me. The servlet's actions about the request are:
1. servlet will put a small circle image in some parts of the main image, then
2. servlet will crop part of the main image as client request then send it to client.

I get trouble to put the small circle image to the main image and crop the main image. Could somebody help me about the algorithm or source code?
Thanx..
 
Sheriff
Posts: 67553
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your best bet would be to look into Java Advanced Imaging (JAI). I've moved this post to the Other Java APIs forum where such topics are discussed.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using JAI may be overkill for this - using Graphics2D is probably sufficient. Can you show us a short excerpt of your code that shows what you are doing, and describe where you are stuck with it?
 
reply
    Bookmark Topic Watch Topic
  • New Topic