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]

Re: [gui] [cp-patches] Re: implementjava.awt.image.Raster.createPackedRaster


Hi,

On Mon, 2004-11-08 at 21:49, Paul Jenner wrote:
> On Thu, 2004-11-04 at 23:45, Jerry Quinn wrote:
> > This patch looks OK to me.
> 
> Please find patch updated to match the recently checked in changes to
> java/awt/image/Raster.java.
> 
> If good, could someone please apply?

Thanks for the reminder. Jerry already approved this, so applied to
classpath CVS and gcj gui branch.

2004-11-11  Paul Jenner  <psj.home@ntlworld.com>

       * java/awt/image/Raster.java
       (createPackedRaster): Implemented.

Cheers,

Mark
diff -Naur classpath/java/awt/image/Raster.java classpath.new/java/awt/image/Raster.java
--- classpath/java/awt/image/Raster.java	2004-11-08 20:29:45.851271688 +0000
+++ classpath.new/java/awt/image/Raster.java	2004-11-08 20:40:22.491487664 +0000
@@ -225,6 +225,19 @@
 				       bandMasks);
     return createWritableRaster(sm, dataBuffer, location);
   }
+  
+  public static WritableRaster
+  createPackedRaster(DataBuffer dataBuffer,
+		     int w, int h,
+		     int bitsPerPixel,
+		     Point location)
+  {
+    SampleModel sm =
+      new MultiPixelPackedSampleModel(dataBuffer.getDataType(),
+				       w, h,
+				       bitsPerPixel);
+    return createWritableRaster(sm, dataBuffer, location);
+  }
     
   public static Raster createRaster(SampleModel sm, DataBuffer db,
 				    Point location)

Attachment: signature.asc
Description: This is a digitally signed message part


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