org.minueto.image
Class MinuetoImageFile

java.lang.Object
  extended by org.minueto.image.MinuetoImage
      extended by org.minueto.image.MinuetoImageFile
All Implemented Interfaces:
java.lang.Cloneable, MinuetoDrawingSurface

public class MinuetoImageFile
extends MinuetoImage

The MinuetoImageFile class allows you to load an image from a file. Since MinuetoImageFile extends MinuetoImage, all the important image manipulation fonctionnality (such as draw, drop, scale, etc) are available.

Since:
Minueto 0.4
See Also:
MinuetoImage

Constructor Summary
MinuetoImageFile(java.lang.String filename)
          Build a MinuetoImageFile by loading the specified file.
MinuetoImageFile(java.net.URL url)
          Build a MinuetoImageFile by loading the specified file.
 
Method Summary
 
Methods inherited from class org.minueto.image.MinuetoImage
clear, clear, clone, crop, draw, drawCircle, drawLine, drawPolygon, drawRectangle, flip, getHeight, getPixel, getWidth, mask, rotate, save, scale, setPixel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinuetoImageFile

public MinuetoImageFile(java.lang.String filename)
                 throws MinuetoFileException
Build a MinuetoImageFile by loading the specified file.

Parameters:
filename - String denoting which file should be loaded.
Throws:
MinuetoFileException - if it could not open the file.
MinuetoFileException

MinuetoImageFile

public MinuetoImageFile(java.net.URL url)
                 throws MinuetoFileException
Build a MinuetoImageFile by loading the specified file. Special thanks to Adam Hooper who gave me the idea to add this function and provided the code to do it.

Parameters:
url - URL denoting which file should be loaded.
Throws:
MinuetoFileException - if it could not open the file.
MinuetoFileException