public class CPDFEditImageArea extends CPDFEditArea
Modifier and Type | Method and Description |
---|---|
boolean |
cutWithRect(float left,
float top,
float right,
float bottom)
Cut the image in the image box .
|
boolean |
extractImage(java.lang.String path)
Save image in the image box as a file.
|
android.graphics.RectF |
getClipRect()
Get the clip rect of the image.
|
android.graphics.RectF |
getDisplayClipFrame() |
android.graphics.RectF |
getDisplayFrame() |
android.graphics.RectF |
getFrame(boolean forceUpdate)
Get the rect occupied by the image box
|
android.graphics.Bitmap |
getImage()
Get image in the image box .
|
float |
getTransparency()
Get image transparency in the image box .
|
boolean |
horizontalMirror()
Make the image in the image box horizontal mirror.
|
boolean |
isEmptyArea()
Whether it is an empty area.
|
void |
release()
Release image box.
|
boolean |
rotate(float angle)
Rotate image in the image box.
|
void |
setDisplayClipFrame(android.graphics.RectF rect) |
void |
setDisplayFrame(android.graphics.RectF rect) |
boolean |
setFrame(android.graphics.RectF rectF,
boolean isUpdate)
Set the rect occupied by the image box
|
void |
setTransparency(float alpha)
Set image transparency in the image box .
|
boolean |
verticleMirror()
Make the image in the image box verticel mirror.
|
getPageNum, getPtr, isValid
public void release()
public android.graphics.RectF getFrame(boolean forceUpdate)
forceUpdate
- whether to force updatepublic void setDisplayFrame(android.graphics.RectF rect)
public android.graphics.RectF getDisplayFrame()
public void setDisplayClipFrame(android.graphics.RectF rect)
public android.graphics.RectF getDisplayClipFrame()
public boolean setFrame(android.graphics.RectF rectF, boolean isUpdate)
rectF
- the rect occupied by the image boxisUpdate
- whether to force updatepublic boolean rotate(float angle)
angle
- Rotate angle.public boolean horizontalMirror()
public boolean verticleMirror()
public boolean cutWithRect(float left, float top, float right, float bottom)
left
- The x coordinate of lefttop pixel of the cut area (In page coordinates).top
- The y coordinate of lefttop pixel of the cut area (In page coordinates).right
- The x coordinate of rightbottom pixel of the cut area (In page coordinates).bottom
- The y coordinate of rightbottom pixel of the cut area (In page coordinates).public android.graphics.RectF getClipRect()
public boolean extractImage(java.lang.String path)
path
- Image save path.public android.graphics.Bitmap getImage()
public float getTransparency()
public void setTransparency(float alpha)
alpha
- image transparency(0 - 255).public boolean isEmptyArea()