public class OperationResultHolder extends java.lang.Object implements AbstractOperation.SourceHolder, AbstractOperation.ResultHolder
| Constructor and Description |
|---|
OperationResultHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableInvalidatable()
disable this state can be became invalid state.
|
android.graphics.Bitmap |
getBlurPreview()
Get source
|
int |
getFullHeight()
Get source image height.
|
android.graphics.Bitmap |
getFullPreview()
Get source
|
int |
getFullWidth()
Get source image width.
|
java.lang.String |
getIdentifier()
Get Identifier.
|
android.graphics.Bitmap |
getSharpPreview()
Get sharp preview source.
|
android.graphics.Rect |
getSharpRect()
Get the Sharp Region that need to bie preview in a higher resolution.
|
boolean |
hasBlurPreview()
Has a source bitmap
|
boolean |
hasFullPreview()
Has a source bitmap
|
boolean |
hasSharpPreview()
Has a sharp region bitmap
|
void |
invalidateAll() |
void |
invalidateFullPreview() |
void |
invalidateSharpPreview() |
boolean |
needRenderFullPreview()
Check if this operation need to render full region
|
boolean |
needRenderSharpPreview()
Check if this operation need to render sharp preview.
|
void |
recycle()
Free Memory
|
void |
setBlurPreview(android.graphics.Bitmap blurPreview)
Set the bitmap blur result for the focus preview.
|
void |
setFullPreview(android.graphics.Bitmap fullPreview)
Set the bitmap result.
|
void |
setSharpRegion(android.graphics.Bitmap sharpRegion,
android.graphics.Rect sharpRect)
Set the sharp region bitmap result and his region.
|
public boolean needRenderFullPreview()
AbstractOperation.ResultHolderneedRenderFullPreview in interface AbstractOperation.ResultHolderpublic void disableInvalidatable()
AbstractOperation.ResultHolderdisableInvalidatable in interface AbstractOperation.ResultHolderpublic void invalidateAll()
invalidateAll in interface AbstractOperation.ResultHolderpublic void invalidateFullPreview()
invalidateFullPreview in interface AbstractOperation.ResultHolderpublic void invalidateSharpPreview()
invalidateSharpPreview in interface AbstractOperation.ResultHolderpublic void setSharpRegion(android.graphics.Bitmap sharpRegion,
android.graphics.Rect sharpRect)
AbstractOperation.ResultHoldersetSharpRegion in interface AbstractOperation.ResultHoldersharpRegion - sharp region bitmapsharpRect - sharp region, should be the source region or a bigger region.public void setFullPreview(@Nullable
android.graphics.Bitmap fullPreview)
AbstractOperation.ResultHoldersetFullPreview in interface AbstractOperation.ResultHolderfullPreview - the full previewpublic void setBlurPreview(android.graphics.Bitmap blurPreview)
AbstractOperation.ResultHoldersetBlurPreview in interface AbstractOperation.ResultHolderblurPreview - the full previewpublic boolean needRenderSharpPreview()
AbstractOperation.ResultHolderneedRenderSharpPreview in interface AbstractOperation.ResultHolder@Nullable public android.graphics.Rect getSharpRect()
AbstractOperation.SourceHoldergetSharpRect in interface AbstractOperation.SourceHolderpublic boolean hasFullPreview()
AbstractOperation.SourceHolderhasFullPreview in interface AbstractOperation.SourceHolderpublic boolean hasBlurPreview()
AbstractOperation.SourceHolderhasBlurPreview in interface AbstractOperation.SourceHolderpublic boolean hasSharpPreview()
AbstractOperation.SourceHolderhasSharpPreview in interface AbstractOperation.SourceHolder@Nullable public android.graphics.Bitmap getFullPreview()
AbstractOperation.SourceHoldergetFullPreview in interface AbstractOperation.SourceHolder@Nullable public android.graphics.Bitmap getBlurPreview()
AbstractOperation.SourceHoldergetBlurPreview in interface AbstractOperation.SourceHolder@Nullable public android.graphics.Bitmap getSharpPreview()
AbstractOperation.SourceHoldergetSharpPreview in interface AbstractOperation.SourceHolderpublic int getFullWidth()
AbstractOperation.SourceHoldergetFullWidth in interface AbstractOperation.SourceHolderpublic int getFullHeight()
AbstractOperation.SourceHoldergetFullHeight in interface AbstractOperation.SourceHolderpublic void recycle()
AbstractOperation.Holderrecycle in interface AbstractOperation.Holder@Nullable public java.lang.String getIdentifier()
AbstractOperation.HoldergetIdentifier in interface AbstractOperation.Holder