java.awt

Interface Transparency

public interface Transparency

A common transparency mode for layering graphics.

Since: 1.1

UNKNOWN: updated to 1.4

Field Summary
intBITMASK
Image data which is either completely opaque or transparent, for an exact integer alpha value.
intOPAQUE
Image data which is completely opaque, for an alpha value of 1.0.
intTRANSLUCENT
Image data which is translucent, for a non-integer alpha value.
Method Summary
intgetTransparency()
Return the transparency type.

Field Detail

BITMASK

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

OPAQUE

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

TRANSLUCENT

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

Method Detail

getTransparency

public int getTransparency()
Return the transparency type.

Returns: One of {@link #OPAQUE}, {@link #BITMASK}, or {@link #TRANSLUCENT}.