Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Resize image?

Posted on 1998-07-07
1
Medium Priority
?
208 Views
Last Modified: 2010-03-30
I want to know is there any methods in java to help us resize the image in gif or jpeg format?
0
Comment
Question by:yuho
1 Comment
 
LVL 16

Accepted Solution

by:
imladris earned 90 total points
ID: 1225201
You can resize an image arbitrarily in the course of displaying with a drawImage method in the Graphics class:

public boolean drawImage(Image img,int x,int y,int width,int height,ImageObserver observer);


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question