Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class SolidPaint
A single color.
Constructors
public SolidPaint(int argb) | Creates a solid paint. |
Methods
public int getColor() | The color as 0xAARRGGBB. |
public void setColor(int argb) | Sets the color. |
public ArtPaint copy() | A deep copy. |
public int colorAt(double x, double y, double[] bbox) | The color at a point of paint space. |
Inherited methods
Constructor details
SolidPaint
public SolidPaint(int argb)Creates a solid paint.
Parameters
argbint- the color as
0xAARRGGBB
Method details
getColor
public int getColor()The color as
0xAARRGGBB.setColor
public void setColor(int argb)Sets the color.
Parameters
argbint- the color as
0xAARRGGBB
copy
public ArtPaint copy()A deep copy.
colorAt
public int colorAt(double x, double y, double[] bbox)The color at a point of paint space.
Parameters
xdouble- x in the space of the shape that is painted
ydouble- y in that space
bboxdouble[]- the shape’s bounding box as
x, y, w, h, for paints relative to it