cgl.ogc.wms.services
Class ImageCombiner

java.lang.Object
  extended byjava.awt.event.WindowAdapter
      extended bycgl.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

Nested Class Summary
 class ImageCombiner.ImageDisplay
          Title:
 class ImageCombiner.ImageMerger
          ImageMerger acts as an ImageProducer to generate the merger of two images.
 
Field Summary
(package private)  int ccnt
           
(package private)  ImageCombiner.ImageDisplay ic1
           
(package private)  ImageCombiner.ImageDisplay ic2
           
(package private)  ImageCombiner.ImageDisplay icr
           
(package private)  java.awt.Image img1
           
(package private)  java.awt.Image img2
           
(package private)  java.awt.Image imgr
           
(package private)  java.awt.Image resultImage
           
 
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
 

Field Detail

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
Constructor Detail

ImageCombiner

public ImageCombiner(java.awt.Image i1,
                     double w1,
                     java.awt.Image i2,
                     double w2)
Parameters:
i1 - Image
w1 - double
i2 - Image
w2 - double
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Parameters:
we - WindowEvent

main

public static void main(java.lang.String[] args)
Parameters:
args - String[]