package com.nucleus.texturing;

import java.io.IOException;

/**
 * Platform abstraction for creating images.
 * 
 * @author Richard Sahlin
 *
 */
public interface ImageFactory {

    /**
     * Loads an image, the image must be in a format that is understood by the platform.
     * 
     * @return The image The loaded image.
     * @throws IOException If there is an error loading the image.
     */
    public Image createImage(String name) throws IOException;

}

@@ -290,24 +290,232 @@
  * @
-return The image
+param name The filename to load%0A     * @param scaleX If image should be scaled in X, 1 = original size, 1.5 = 50%25 bigger%0A     * @param scaleY If image should be scaled in Y, 1 = original size, 1.5 = 50%25 bigger%0A     * @return
  The
@@ -604,16 +604,16 @@
      */%0A
-
     publ
@@ -644,16 +644,44 @@
 ing name
+, float scaleX, float scaleY
 ) throws

Support for creating scaled image in ImageFactory interface