cgl.ogc.wms.services
Class ImageCombiner
java.lang.Object
java.awt.event.WindowAdapter
cgl.ogc.wms.services.ImageCombiner
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener
- public class ImageCombiner
- extends java.awt.event.WindowAdapter
To use this program, first identify the two images
you want to merge. Then run this program and give
the two image file names on the command line. The
program will display both images and their combination.
To change the relative weights of the combination,
pass both the file names and the weights on the command
line.
Title:
Description:
Copyright: Copyright (c) 2005
Company: Indiana University - Computer Science Dept.
- Version:
- 1.0
- Author:
- Ahmet Sayar
|
Constructor Summary |
ImageCombiner(java.awt.Image i1,
double w1,
java.awt.Image i2,
double w2)
|
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
windowClosing(java.awt.event.WindowEvent we)
|
| Methods inherited from class java.awt.event.WindowAdapter |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultImage
java.awt.Image resultImage
img1
java.awt.Image img1
img2
java.awt.Image img2
imgr
java.awt.Image imgr
ic1
ImageCombiner.ImageDisplay ic1
ic2
ImageCombiner.ImageDisplay ic2
icr
ImageCombiner.ImageDisplay icr
ccnt
int ccnt
ImageCombiner
public ImageCombiner(java.awt.Image i1,
double w1,
java.awt.Image i2,
double w2)
- Parameters:
i1 - Imagew1 - doublei2 - Imagew2 - double
windowClosing
public void windowClosing(java.awt.event.WindowEvent we)
- Parameters:
we - WindowEvent
main
public static void main(java.lang.String[] args)
- Parameters:
args - String[]