home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 25 / CDROM25.iso / Share / prog / VJ11 / VJTRIAL.EXE / IE30Java.exe / classd.exe / sun / awt / win32 / Win32Image.java < prev    next >
Encoding:
Java Source  |  1997-01-27  |  1.6 KB  |  53 lines

  1. /*
  2.  * @(#)Win32Image.java    1.9 96/03/31 Arthur van Hoff
  3.  *
  4.  * Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19.  
  20. package sun.awt.win32;
  21.  
  22. import java.awt.Component;
  23. import java.awt.Graphics;
  24. import java.awt.image.ImageProducer;
  25. import com.ms.awt.GraphicsX;
  26.  
  27. public class Win32Image extends sun.awt.image.Image {
  28.     /**
  29.      * Construct an image for offscreen rendering to be used with a
  30.      * given Component.
  31.      */
  32.     public Win32Image(Component c, int w, int h) {
  33.     super(c, w, h);
  34.     }
  35.  
  36.     /**
  37.      * Construct an image from an ImageProducer object.
  38.      */
  39.     public Win32Image(ImageProducer producer) {
  40.     super(producer);
  41.     }
  42.  
  43.     public Graphics getGraphics() {
  44.     Graphics g = new GraphicsX(this);
  45.     initGraphics(g);
  46.     return g;
  47.     }
  48.  
  49.     protected sun.awt.image.ImageRepresentation getImageRep(int w, int h) {
  50.     return super.getImageRep(w, h);
  51.     }
  52. }
  53.