net.sourceforge.groboutils.uicapture.v1
Interface IScreenScraper

All Known Implementing Classes:
DefaultScreenScraper

public interface IScreenScraper

This interface defines a class which can save an Image to a file. The writing may be compressed, lossy, or whatever, just as long as a proper file Diff of the same Image (but different files) will result in no differences.

Version:
Jan 7, 2002
Author:
Matt Albrecht groboclown@users.sourceforge.net

Method Summary
 java.lang.String getFileExtention()
          Discover the file extention for images created by this scraper.
 void writeImageToFile(java.awt.image.BufferedImage image, java.io.File file)
          Write the given image to the given file.
 

Method Detail

writeImageToFile

public void writeImageToFile(java.awt.image.BufferedImage image,
                             java.io.File file)
                      throws java.io.IOException
Write the given image to the given file.

Parameters:
image - The screen image to write to disk.
file - The File to save the image as.
Throws:
java.io.IOException - thrown if there was a problem saving the image to the file.

getFileExtention

public java.lang.String getFileExtention()
Discover the file extention for images created by this scraper. This does not include a '.'.

Returns:
the extention for files this scraper writes.


Copyright © 2001-2003 by The GroboUtils Project