905 * destination surface. 906 */ 907 public abstract GraphicsConfiguration getDeviceConfiguration(); 908 909 /** 910 * Return the SurfaceType object that describes the destination 911 * surface. 912 */ 913 public final SurfaceType getSurfaceType() { 914 return surfaceType; 915 } 916 917 /** 918 * Return the ColorModel for the destination surface. 919 */ 920 public final ColorModel getColorModel() { 921 return colorModel; 922 } 923 924 /** 925 * Returns the type of this <code>Transparency</code>. 926 * @return the field type of this <code>Transparency</code>, which is 927 * either OPAQUE, BITMASK or TRANSLUCENT. 928 */ 929 public int getTransparency() { 930 return getColorModel().getTransparency(); 931 } 932 933 /** 934 * Return a readable Raster which contains the pixels for the 935 * specified rectangular region of the destination surface. 936 * The coordinate origin of the returned Raster is the same as 937 * the device space origin of the destination surface. 938 * In some cases the returned Raster might also be writeable. 939 * In most cases, the returned Raster might contain more pixels 940 * than requested. 941 * 942 * @see #useTightBBoxes 943 */ 944 public abstract Raster getRaster(int x, int y, int w, int h); 945 946 /** | 905 * destination surface. 906 */ 907 public abstract GraphicsConfiguration getDeviceConfiguration(); 908 909 /** 910 * Return the SurfaceType object that describes the destination 911 * surface. 912 */ 913 public final SurfaceType getSurfaceType() { 914 return surfaceType; 915 } 916 917 /** 918 * Return the ColorModel for the destination surface. 919 */ 920 public final ColorModel getColorModel() { 921 return colorModel; 922 } 923 924 /** 925 * Returns the type of this {@code Transparency}. 926 * @return the field type of this {@code Transparency}, which is 927 * either OPAQUE, BITMASK or TRANSLUCENT. 928 */ 929 public int getTransparency() { 930 return getColorModel().getTransparency(); 931 } 932 933 /** 934 * Return a readable Raster which contains the pixels for the 935 * specified rectangular region of the destination surface. 936 * The coordinate origin of the returned Raster is the same as 937 * the device space origin of the destination surface. 938 * In some cases the returned Raster might also be writeable. 939 * In most cases, the returned Raster might contain more pixels 940 * than requested. 941 * 942 * @see #useTightBBoxes 943 */ 944 public abstract Raster getRaster(int x, int y, int w, int h); 945 946 /** |