public class SpenFillImageEffect extends SpenFillEffectBase
| Modifier and Type | Field and Description |
|---|---|
static int |
FILL_TYPE_STRETCH
Image will be stretched.
|
static int |
FILL_TYPE_TILING
Image will be tiled.
|
TYPE_COLOR, TYPE_IMAGE, TYPE_PATTERN| Constructor and Description |
|---|
SpenFillImageEffect()
Create new SpenFillImageEffect instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFillType()
Get fill type.
|
Bitmap |
getImage()
Get image which is currently filled.
|
RectF |
getStretchOffset()
Get the stretch offset
|
PointF |
getTilingOffset()
Get tiling offset
|
float |
getTilingScaleX()
Get tiling x scale.
|
float |
getTilingScaleY()
Get tiling y scale.
|
void |
setFillType(int type)
Set fill type.
|
void |
setImage(Bitmap image)
Set image to fill.
|
void |
setStretchOffset(RectF offset)
Set the offset to stretch.
|
void |
setTilingOffset(PointF offset)
Set tiling offset
|
void |
setTilingScaleX(float scale)
Set tiling x scale.
|
void |
setTilingScaleY(float scale)
Set tiling y scale.
|
createFillEffect, getTypepublic static final int FILL_TYPE_STRETCH
public static final int FILL_TYPE_TILING
public SpenFillImageEffect()
public void setImage(Bitmap image)
image - Image to fillgetImage()public Bitmap getImage()
setImage(Bitmap)public void setStretchOffset(RectF offset)
offset - Offset to stretch.NullPointerException - Thrown if the offset is null.getStretchOffset()public RectF getStretchOffset()
setStretchOffset(RectF)public void setTilingOffset(PointF offset)
offset - Tiling offsetNullPointerException - Thrown if the offset is null.getTilingOffset()public PointF getTilingOffset()
setTilingOffset(PointF)public void setTilingScaleX(float scale)
scale - Tiling x scale.NullPointerException - Thrown if the scale is null.getTilingScaleX()public float getTilingScaleX()
setTilingScaleX(float)public void setTilingScaleY(float scale)
scale - Tiling y scale.NullPointerException - Thrown if the scale is null.getTilingScaleY()public float getTilingScaleY()
setTilingScaleY(float)public void setFillType(int type)
type - Fill type.IllegalArgumentException - Thrown if parameter type is not valid.getFillType()public int getFillType()
setFillType(int)