Solved

Resize image?

Posted on 1998-07-07
1
201 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 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
recursion example 16 125
JUnit 4 @Before and @BeforeClass differences 3 59
tomcat startup error 5 59
How to execute a Python program and gather return output in Java 2 29
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

776 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