public class CPDFInkAnnotation extends CPDFAnnotation
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Gets opacity.
|
float |
getBorderWidth()
Gets border width of ink annotation.
|
int |
getColor()
Gets color.
|
PointF[][] |
getInkPath()
Gets ink path.
|
RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setAlpha(int alpha)
Sets opacity.
|
boolean |
setBorderWidth(float borderWidth)
Sets border width of ink annotation.
|
boolean |
setColor(int color)
Sets color.
|
boolean |
setInkPath(PointF[][] path)
Sets ink path.
|
boolean |
setRect(RectF rect)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImage
public boolean setInkPath(PointF[][] path)
path
- Points collection on the path, path is two-dimensional array, the first dimension represents all coordinate points in one path, the second dimension represents all ink path.public PointF[][] getInkPath()
public boolean setColor(int color)
color
- Color value (0x00000000~0xFFFFFFFF)public int getColor()
public boolean setAlpha(int alpha)
alpha
- Opacity value (0~255)public int getAlpha()
public float getBorderWidth()
getBorderWidth
in class CPDFAnnotation
public boolean setBorderWidth(float borderWidth)
setBorderWidth
in class CPDFAnnotation
borderWidth
- Border width of ink annotation.public RectF getRect()
getRect
in class CPDFAnnotation
public boolean setRect(RectF rect)
setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public boolean updateAp()
updateAp
in class CPDFAnnotation