Solved

java graphics..201 points

Posted on 2002-06-25
6
198 Views
Last Modified: 2010-03-31
Is it posible in java to replace a part of image with other image.
if posible give me a solution please.Very urgent...


the html simulation is available in the below link
http://www.atlantainfotech.net/floor/floor_image.htm
0
Comment
Question by:ravi24
6 Comments
 
LVL 92

Accepted Solution

by:
objects earned 201 total points
ID: 7106780
Graphics g = image1.getGraphics();
g.drawImage(x, y, image2, null);
0
 

Author Comment

by:ravi24
ID: 7107226
i need to paste a image to a existing image in diferend size like diamondsize, or triangle..
0
 
LVL 3

Expert Comment

by:daitt
ID: 7107884
You can try Graphics.setClip(Shape) or Graphics2D.clip(Shape) to clip your graphics object, after that you can draw images on your graphics object. Only area inside clip will be drawn.
0
 
LVL 92

Expert Comment

by:objects
ID: 7109534
The x, y coordinates in my comment above specify the location in image1 you want to paint image2.
0
 
LVL 35

Expert Comment

by:girionis
ID: 8860698
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this
question is:

- points to objects

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
micro services spring boot application error 3 196
Where to store the queries for modification of table 4 62
hibernate insert example 13 29
null output 3 25
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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