Class SolidPaint
java.lang.Object
com.codename1.art.ArtPaint
com.codename1.art.SolidPaint
A single color.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ArtPaint
copyBase, getBlendMode, getOpacity, isEnabled, setBlendMode, setEnabled, setOpacity
-
Constructor Details
-
SolidPaint
public SolidPaint(int argb) Creates a solid paint.
Parameters
argb: the color as0xAARRGGBB
-
-
Method Details
-
getColor
public int getColor()The color as0xAARRGGBB. -
setColor
public void setColor(int argb) Sets the color.
Parameters
argb: the color as0xAARRGGBB
-
copy
-
colorAt
public int colorAt(double x, double y, double[] bbox) Description copied from class:ArtPaintThe color at a point of paint space.
Parameters
x: x in the space of the shape that is paintedy: y in that spacebbox: the shape's bounding box asx, y, w, h, for paints relative to it
-