Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Game Development and the fly likes How to copy image with given points? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "How to copy image with given points? " Watch "How to copy image with given points? " New topic
Author

How to copy image with given points?

au lai seong
Greenhorn

Joined: Mar 06, 2011
Posts: 14
How to copy/crop with given points? The number of point maybe more than 4.
Jj Hill
Ranch Hand

Joined: Jul 25, 2011
Posts: 41

What do you mean by points? The standard image classes just have one point, with an (x, y) location. Please be more specific.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3378
    
    9
I'm thinking the original poster wants to define a polygon, and create a new image that is the intersection of the original image and the polygon.

Take a look at the Graphics class. You can get an instance of it from an instance of Image.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to copy image with given points?
 
Similar Threads
is this strange
Same old question about clone(). How ???
util for detecting given point is within given region/points(circle, rectangle...)
PolyLine or Polygon?
singleton vs multiton data object