Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to copy image with given points?  RSS feed

 
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
Saloon Keeper
Posts: 7719
142
  • 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
Boost this thread!