[gui] [PATCH] ReplicateScaleFilter, CropImageFilter, and other fixes

David Jee djee@redhat.com
Wed May 5 21:00:00 GMT 2004


Hello,

I'm committing the following patch to the java-gui-branch.  It
implements ReplicateScaleFilter and CropImageFilter, and it also fixes a
couple things related to image handling.

-David Jee

2004-05-05  David Jee  <djee@redhat.com>

        * gnu/java/awt/peer/gtk/GdkGraphics.java
        (drawImage): When component is null, use SystemColor.window as
        the default bgcolor.
        * gnu/java/awt/peer/gtk/GtkImage.java
        (setPixels): We can avoid iterating through the pixel rows only
        when height is 1.
        * java/awt/Image.java
        (getScaledInstance): Partially implement.
        * java/awt/image/CropImageFilter.java
        (setProperties): Fix "filter" property.
        (setPixels): Implement.
        * java/awt/image/ReplicateScaleFilter.java
        (setDimensions): Use scaled dimensions.
        (setPixels): Implement.
        (replicatePixels): New method.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageFilters.patch
Type: text/x-patch
Size: 8242 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040505/0087d201/attachment.bin>


More information about the Java-patches mailing list