new files: GdkGraphics2d.java, JNI/cairo backend

graydon hoare graydon@redhat.com
Thu Aug 28 22:15:00 GMT 2003


Hi,

as part of the work implementing Java2D APIs on top of GDK and cairo,
I have written a partial Graphics2D object which supports, at the
moment, a certain subset of the full API:

  - lines, quadratic and cubic curves
  - solid, linear-gradient and texture fills
  - 12-rule porter/duff compositing with alpha channel
  - standard stroke join and cap modes, miter limit, pen width
  - affine transformations and clipping shapes

several parts of the API are unfinished and many of the more obvious
overloads are not implemented, but the basic structure is sufficient
for a fair amount of good drawing. some results are shown at 

http://people.redhat.com/graydon/native-java2d-aug28-2003.png

Here are the two main drawing-related files; other files and patches
to facilitate building will follow in subsequent posts.

comments? 

-graydon

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GdkGraphics2D.java
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030828/3d919bf6/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gnu_java_awt_peer_gtk_GdkGraphics2D.c
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030828/3d919bf6/attachment.c>


More information about the Java-patches mailing list