?
Solved

Mirroring an Image

Posted on 2003-02-19
4
Medium Priority
?
197 Views
Last Modified: 2010-03-31
Hello,

   i have an Image which has to mirrored, can you tell me how this can be achieved or any package that can be used.

Thanks and regards,
chaitra
0
Comment
Question by:alpjose
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 7987419
What do you mean by "mirrored"?
0
 

Author Comment

by:alpjose
ID: 7991782
Mirrored is nothing but creating the mirror image of itself(sort of getting the refection of the image). there are number of image processing techniques like rotating,zooming etc..
 Mirroring is one of them.

i hope mirroring is clear,



0
 
LVL 86

Accepted Solution

by:
CEHJ earned 120 total points
ID: 7996448
I think so - try:

void mirrorImage(Image image) {
     // mirror image
     AffineTransform tx = new AffineTransform();
     tx.translate(image.getWidth(), 0);
     tx.scale(-1.0, 1);
     AffineTransformOp op = new AffineTransformOp(tx,
     AffineTransformOp.TYPE_BILINEAR);
     filter(op);
}
0
 

Expert Comment

by:CleanupPing
ID: 9059218
alpjose:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question