java.awt
Interface Transparency

All Known Subinterfaces:
Paint
All Known Implementing Classes:
BufferedImage, Color, ColorModel, ColorUIResource, ComponentColorModel, DirectColorModel, GradientPaint, IndexColorModel, PackedColorModel, SystemColor, TexturePaint, VolatileImage

public interface Transparency

A common transparency mode for layering graphics.

Since:
1.1

Field Summary
static int BITMASK
          Image data which is either completely opaque or transparent, for an exact integer alpha value.
static int OPAQUE
          Image data which is completely opaque, for an alpha value of 1.0.
static int TRANSLUCENT
          Image data which is translucent, for a non-integer alpha value.
 
Method Summary
 int getTransparency()
          Return the transparency type.
 

Field Detail

OPAQUE

static final int OPAQUE
Image data which is completely opaque, for an alpha value of 1.0.

See Also:
Constant Field Values

BITMASK

static final int BITMASK
Image data which is either completely opaque or transparent, for an exact integer alpha value.

See Also:
Constant Field Values

TRANSLUCENT

static final int TRANSLUCENT
Image data which is translucent, for a non-integer alpha value.

See Also:
Constant Field Values
Method Detail

getTransparency

int getTransparency()
Return the transparency type.

Returns:
One of OPAQUE, BITMASK, or TRANSLUCENT.