mosaiccreator
Class PictureTools

public class PictureTools

Title: Picture Tools

Description: used to read in images

Version:
1.0
Author:
Lance Finfrock
Method Detail

readImage

public static Image readImage(String imageName,
                              int width,
                              int height,
                              Component component)
reads in an image and stritched it to width and height
Parameters:
imageName - String the path to the image
width - int the width the image is stritched
height - int the height the image is stritched
component - Component the window came from
Returns:
Image the image created

readImage

public static Image readImage(String imageName,
                              Component component)
reads in an image
Parameters:
imageName - String the path to the image
component - Component window the that called this method
Returns:
Image the image created