Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Mirroring an Image

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
alpjose
Asked:
alpjose
  • 2
1 Solution
 
CEHJCommented:
What do you mean by "mirrored"?
0
 
alpjoseAuthor Commented:
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
 
CEHJCommented:
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
 
CleanupPingCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now