I am trying to cut an image that I have uploaded into a java written program into quarters, specifically a pyramid. Every pyramid level will have a corresponding image, for example given an input image of abc.pgm, you will generate output images abc1.pgm for pyramid level 1, and abc2.pgm for pyramid level2. Each level should be in a quarter size from the previous level. But I really don't understand how to do this... any information would be greatly appreciated!
aiojou
0
Newbie Poster
Recommended Answers
Jump to PostDo you mean cut into quarters, or reduce to one quarter of the size (in which case use Image's getScaledInstance method)?
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
aiojou
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.