diff --git a/src/helma/scripting/rhino/ImageObject.java b/src/helma/scripting/rhino/ImageObject.java new file mode 100644 index 00000000..4282c8af --- /dev/null +++ b/src/helma/scripting/rhino/ImageObject.java @@ -0,0 +1,110 @@ +/* + * Helma License Notice + * + * The contents of this file are subject to the Helma License + * Version 2.0 (the "License"). You may not use this file except in + * compliance with the License. A copy of the License is available at + * http://adele.helma.org/download/helma/license.txt + * + * Copyright 1998-2003 Helma Software. All Rights Reserved. + * + * $RCSfile$ + * $Author$ + * $Revision$ + * $Date$ + */ + +package helma.scripting.rhino; + +import helma.image.*; +import helma.util.*; +import java.awt.image.*; +import java.io.*; +import java.util.*; +import org.mozilla.javascript.Context; +import org.mozilla.javascript.Function; +import org.mozilla.javascript.FunctionObject; +import org.mozilla.javascript.Scriptable; +import org.mozilla.javascript.ScriptableObject; +import org.mozilla.javascript.NativeJavaArray; +import org.mozilla.javascript.NativeJavaObject; +import java.lang.reflect.Member; +import java.lang.reflect.Method; + +/** + * Extension to do Image manipulation from HOP. + */ +public class ImageObject { + static ImageGenerator imggen; + static Scriptable global; + + /** + * Called by the evaluator after the extension is loaded. + */ + public static void init(Scriptable scope) { + Method[] methods = ImageObject.class.getDeclaredMethods(); + Member ctorMember = null; + for (int i=0; i