This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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
Posts: 6337
79
  • 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