1 |
/* BufferedImage.java -- |
/* BufferedImage.java -- |
2 |
Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation |
Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
62 |
* @author Rolf W. Rasmussen (rolfwr@ii.uib.no) |
* @author Rolf W. Rasmussen (rolfwr@ii.uib.no) |
63 |
*/ |
*/ |
64 |
public class BufferedImage extends Image |
public class BufferedImage extends Image |
65 |
implements WritableRenderedImage |
implements WritableRenderedImage, Transparency |
66 |
{ |
{ |
67 |
public static final int TYPE_CUSTOM = 0, |
public static final int TYPE_CUSTOM = 0, |
68 |
TYPE_INT_RGB = 1, |
TYPE_INT_RGB = 1, |
688 |
|
|
689 |
observers.remove (to); |
observers.remove (to); |
690 |
} |
} |
691 |
|
|
692 |
|
/** |
693 |
|
* Return the transparency type. |
694 |
|
* |
695 |
|
* @return One of {@link #OPAQUE}, {@link #BITMASK}, or {@link #TRANSLUCENT}. |
696 |
|
* @see Transparency#getTransparency() |
697 |
|
* @since 1.5 |
698 |
|
*/ |
699 |
|
public int getTransparency() |
700 |
|
{ |
701 |
|
return colorModel.getTransparency(); |
702 |
|
} |
703 |
} |
} |