APIdia Launch Partner
Top Description Fields Methods
java.awt

public Interface Transparency

Known Direct Subinterfaces
java.awt.Paint
Known Direct Implementers
java.awt.image.BufferedImage, java.awt.image.ColorModel, java.awt.image.VolatileImage, sun.java2d.SurfaceData, sun.java2d.x11.X11SurfaceDataProxy, sun.java2d.xr.XRSurfaceDataProxy
Imports
java.lang.annotation.Native

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

Field Summary

Modifier and TypeField and Description
public 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.

public 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.

public static final int
TRANSLUCENT

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

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the field type of this Transparency, which is either OPAQUE, BITMASK or TRANSLUCENT.
getTransparency
()

Returns the type of this Transparency.

Field Detail

BITMASKback to summary
public 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.

Annotations
@Native
OPAQUEback to summary
public 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.

Annotations
@Native
TRANSLUCENTback to summary
public static final int TRANSLUCENT

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

Annotations
@Native

Method Detail

getTransparencyback to summary
public int getTransparency()

Returns the type of this Transparency.

Returns:int

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