This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

new files: GdkGraphics2d.java, JNI/cairo backend


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

Attachment: GdkGraphics2D.java
Description: GdkGraphics2D java implementation

Attachment: gnu_java_awt_peer_gtk_GdkGraphics2D.c
Description: GdkGraphics2D C implementation


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]