Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to copy image with given points?

 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to copy/crop with given points? The number of point maybe more than 4.
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 5415
52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic