Solved

Resize image?

Posted on 1998-07-07
1
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
imladris earned 30 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java exception bubble up 2 26
ejb entity bean example issue 2 43
Java syntax, or is it Selenium 6 61
Using jdbcTemplate.batchUpdate to improve INSERT performance 6 32
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.
Suggested Courses

734 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