src/java.desktop/share/classes/java/awt/image/BufferedImage.java

Print this page




 839      * @see #TYPE_USHORT_GRAY
 840      * @see #TYPE_USHORT_565_RGB
 841      * @see #TYPE_USHORT_555_RGB
 842      * @see #TYPE_CUSTOM
 843      */
 844     public int getType() {
 845         return imageType;
 846     }
 847 
 848     /**
 849      * Returns the <code>ColorModel</code>.
 850      * @return the <code>ColorModel</code> of this
 851      *  <code>BufferedImage</code>.
 852      */
 853     public ColorModel getColorModel() {
 854         return colorModel;
 855     }
 856 
 857     /**
 858      * Returns the {@link WritableRaster}.
 859      * @return the <code>WriteableRaster</code> of this
 860      *  <code>BufferedImage</code>.
 861      */
 862     public WritableRaster getRaster() {
 863         return raster;
 864     }
 865 
 866 
 867     /**
 868      * Returns a <code>WritableRaster</code> representing the alpha
 869      * channel for <code>BufferedImage</code> objects
 870      * with <code>ColorModel</code> objects that support a separate
 871      * spatial alpha channel, such as <code>ComponentColorModel</code> and
 872      * <code>DirectColorModel</code>.  Returns <code>null</code> if there
 873      * is no alpha channel associated with the <code>ColorModel</code> in
 874      * this image.  This method assumes that for all
 875      * <code>ColorModel</code> objects other than
 876      * <code>IndexColorModel</code>, if the <code>ColorModel</code>
 877      * supports alpha, there is a separate alpha channel
 878      * which is stored as the last band of image data.
 879      * If the image uses an <code>IndexColorModel</code> that




 839      * @see #TYPE_USHORT_GRAY
 840      * @see #TYPE_USHORT_565_RGB
 841      * @see #TYPE_USHORT_555_RGB
 842      * @see #TYPE_CUSTOM
 843      */
 844     public int getType() {
 845         return imageType;
 846     }
 847 
 848     /**
 849      * Returns the <code>ColorModel</code>.
 850      * @return the <code>ColorModel</code> of this
 851      *  <code>BufferedImage</code>.
 852      */
 853     public ColorModel getColorModel() {
 854         return colorModel;
 855     }
 856 
 857     /**
 858      * Returns the {@link WritableRaster}.
 859      * @return the <code>WritableRaster</code> of this
 860      *  <code>BufferedImage</code>.
 861      */
 862     public WritableRaster getRaster() {
 863         return raster;
 864     }
 865 
 866 
 867     /**
 868      * Returns a <code>WritableRaster</code> representing the alpha
 869      * channel for <code>BufferedImage</code> objects
 870      * with <code>ColorModel</code> objects that support a separate
 871      * spatial alpha channel, such as <code>ComponentColorModel</code> and
 872      * <code>DirectColorModel</code>.  Returns <code>null</code> if there
 873      * is no alpha channel associated with the <code>ColorModel</code> in
 874      * this image.  This method assumes that for all
 875      * <code>ColorModel</code> objects other than
 876      * <code>IndexColorModel</code>, if the <code>ColorModel</code>
 877      * supports alpha, there is a separate alpha channel
 878      * which is stored as the last band of image data.
 879      * If the image uses an <code>IndexColorModel</code> that