FYI [gui] Add support for scaling pixmaps
Mark Wielaard
mark@klomp.org
Wed Aug 11 13:33:00 GMT 2004
Hi,
This adds the work of Craig Black done on GNU Classpath.
The attached patch adds support for scaling pixmaps as used in two of
the Graphics.drawImage methods. Currently those methods throw
RuntimeExceptions when using offscreen images.
2004-08-09 Craig Black <craig.black@aonix.com>
* gnu/java/awt/peer/gtk/GdkGraphics.java
(drawImage): Add support for scaling pixmaps.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(copyAndScalePixmap): New native method.
This makes the smiley example work perfectly :)
http://lists.gnu.org/archive/html/classpath-patches/2004-08/txtoVfj96Rv0S.txt
Committed to the gui branch.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smiley.patch
Type: text/x-patch
Size: 6836 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040811/31b31406/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040811/31b31406/attachment.sig>
More information about the Java-patches
mailing list