java.awt
Interface Transparency

All Known Subinterfaces:
Paint sample code for java.awt.Paint definition code for java.awt.Paint
All Known Implementing Classes:
BufferedImage sample code for java.awt.image.BufferedImage definition code for java.awt.image.BufferedImage , Color sample code for java.awt.Color definition code for java.awt.Color , ColorModel sample code for java.awt.image.ColorModel definition code for java.awt.image.ColorModel , ColorUIResource sample code for javax.swing.plaf.ColorUIResource definition code for javax.swing.plaf.ColorUIResource , ComponentColorModel sample code for java.awt.image.ComponentColorModel definition code for java.awt.image.ComponentColorModel , DirectColorModel sample code for java.awt.image.DirectColorModel definition code for java.awt.image.DirectColorModel , GradientPaint sample code for java.awt.GradientPaint definition code for java.awt.GradientPaint , IndexColorModel sample code for java.awt.image.IndexColorModel definition code for java.awt.image.IndexColorModel , PackedColorModel sample code for java.awt.image.PackedColorModel definition code for java.awt.image.PackedColorModel , SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor , TexturePaint sample code for java.awt.TexturePaint definition code for java.awt.TexturePaint , VolatileImage sample code for java.awt.image.VolatileImage definition code for java.awt.image.VolatileImage

public interface Transparency

The Transparency interface defines the common transparency modes for implementing classes.


Field Summary
static int BITMASK sample code for java.awt.Transparency.BITMASK definition code for java.awt.Transparency.BITMASK
          Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.
static int OPAQUE sample code for java.awt.Transparency.OPAQUE definition code for java.awt.Transparency.OPAQUE
          Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
static int TRANSLUCENT sample code for java.awt.Transparency.TRANSLUCENT definition code for java.awt.Transparency.TRANSLUCENT
          Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
 
Method Summary
 int getTransparency sample code for java.awt.Transparency.getTransparency() definition code for java.awt.Transparency.getTransparency() ()
          Returns the type of this Transparency.
 

Field Detail

OPAQUE sample code for java.awt.Transparency.OPAQUE

static final int OPAQUE
Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.

See Also:
Constant Field Values

BITMASK sample code for java.awt.Transparency.BITMASK

static final int BITMASK
Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.

See Also:
Constant Field Values

TRANSLUCENT sample code for java.awt.Transparency.TRANSLUCENT

static final int TRANSLUCENT
Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.

See Also:
Constant Field Values
Method Detail

getTransparency sample code for java.awt.Transparency.getTransparency() definition code for java.awt.Transparency.getTransparency()

int getTransparency()
Returns the type of this Transparency.

Returns:
the field type of this Transparency, which is either OPAQUE, BITMASK or TRANSLUCENT.