From: Dinu Gherman <gherman@...>
> Hi,
>
> I think I know the answer to my next question already,
> at least to the first part of it: No. But what about
> the second part?
>
> Is there a some easy way to make PIL work with Jython
> (easy mostly meaning with no JNI tricks) or what would
> be a recommended way (or module) of accomplishing the
> same things that PIL allows you to do?
>
> I know PIL is C and unlikly to be "ported" to Java etc,
> but I don't know if someone knows if there is something
> equivalent to PIL in Java that could be used instead,
> maybe with a PIL-like interface (to allow {P,J}ython
> client code to stay unchanged)?
>
I'm not a PIL user, but I would say that the following
are possible start points to collect the necessary
functionality on Java side:
The Java2D API (which comes bundled with the Java SDK distrs)
http://java.sun.com/products/java-media/2D/index.html
Java2D FAQ is here:
http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html
and more on target but maybe overkill:
the Java Advanced Imaging API (a separate download):
http://java.sun.com/products/java-media/jai/index.html
(the download is the Sun reference impl. of this one
for Win/Solaris, don't know if Apple or someone else
has an implementation for Mac OS X).
This page contain a functional comparision of the two:
http://www.sun.com/software/imaging/Comparison/imaging_function.html
regards, Samuele Pedroni.
|