erland.util
Interface ImageCreatorInterface


public interface ImageCreatorInterface

Defines an interface for objects implementing image creation

Author:
Erland Isaksson

Method Summary
 Image createCompatibleImage(int width, int height, int transparency)
          Creates a new Image with the specified size and transparency
 Image createImage()
          Creates a new Image with the size of the screen
 Image createImage(int width, int height)
          Creates a new Image with the specified size
 Image createVolatileImage()
          Creates a new VolatieImage with the size of the screen
 Image createVolatileImage(Image image)
          Creates a new VolatileImage and copies the specified image to it
 Image createVolatileImage(int width, int height)
          Creates a new VolatileImage with the specified size
 

Method Detail

createImage

Image createImage()
Creates a new Image with the size of the screen

Returns:
An Image object

createVolatileImage

Image createVolatileImage()
Creates a new VolatieImage with the size of the screen

Returns:
An Image object

createImage

Image createImage(int width,
                  int height)
Creates a new Image with the specified size

Parameters:
width - The width of the image
height - The height of the image
Returns:
An Image object

createCompatibleImage

Image createCompatibleImage(int width,
                            int height,
                            int transparency)
Creates a new Image with the specified size and transparency

Parameters:
width - The width of the image
height - The height of the image
transparency - Indicates the type of transparency
Returns:
An Image object

createVolatileImage

Image createVolatileImage(int width,
                          int height)
Creates a new VolatileImage with the specified size

Parameters:
width - The width of the image
height - The height of the image
Returns:
An Image object

createVolatileImage

Image createVolatileImage(Image image)
Creates a new VolatileImage and copies the specified image to it

Parameters:
image - The image to copy
Returns:
An image object


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.