Paint
, Transparency
LinearGradientPaint
, RadialGradientPaint
This is the superclass for Paints which use a multiple color gradient to fill in their raster. It provides storage for variables and enumerated values common to LinearGradientPaint
and RadialGradientPaint
.
Nested Classes
static enum
The color space in which to perform the gradient interpolation.
static enum
The method to use when painting outside the gradient bounds.
Returns a copy of the array of colors used by this gradient.
Returns the enumerated type which specifies color space for interpolation.
Returns the enumerated type which specifies cycling behavior.
final float[]
Returns a copy of the array of floats used by this gradient to calculate color distribution.
Returns a copy of the transform applied to the gradient.
final int
Returns the transparency mode for this Paint
object.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final float[] getFractions()
Returns a copy of the array of floats used by this gradient to calculate color distribution. The returned array always has 0 as its first value and 1 as its last value, with increasing values in between.
()
Returns a copy of the array of colors used by this gradient. The first color maps to the first value in the fractions array, and the last color maps to the last value in the fractions array.
Returns the enumerated type which specifies cycling behavior.
Returns the enumerated type which specifies color space for interpolation.
Note that if no transform is applied to the gradient when it is created, the identity transform is used.
public final int getTransparency()
Returns the transparency mode for this Paint
object.
getTransparency
in interface Transparency
OPAQUE
if all colors used by this Paint
object are opaque, TRANSLUCENT
if at least one of the colors used by this Paint
object is not opaque.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4