• Post Reply Bookmark Topic Watch Topic
  • New Topic

cropping image in servlet  RSS feed

 
Iman Abdulah
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!