Bitmap.getTransparent

Overview | Methods | This Package | All Packages

Bitmap.getTransparent

Retrieves a boolean value that specifies whether this object is configured to be drawn transparently.

Syntax

public final boolean getTransparent()

Return Value

Returns true if the bitmap is to be drawn transparently; otherwise, returns false.

Remarks

Because Windows does not natively support bitmap transparency, the Bitmap object simulates transparency. Setting the Bitmap object's transparency value (using setTransparent) specifies whether the bitmap's transparent color will be drawn when the image is rendered.

If you specify that a bitmap's transparency color will not be drawn, you should also use the setTransparentColor method to specify which color is transparent for the Bitmap object. If you call the setTransparent method specifying that the bitmap's transparent color should not be drawn, but do not call setTransparentColor to identify the transparent color, the Bitmap object uses the color of the pixel in the lower-left corner of the bitmap.