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 |
needRenderFullResult()
Check if this operation need to render full region
|
boolean |
needRenderSharpResult()
Check if this operation need to render sharp preview.
|
void |
recycle()
Free Memory
|
void |
setBlurResult(android.graphics.Bitmap blurPreview)
Set the bitmap blur result for the focus preview.
|
void |
setFullResult(android.graphics.Bitmap fullPreview)
Set the bitmap result.
|
void |
setSharpRegionResult(android.graphics.Bitmap sharpRegion,
android.graphics.Rect sharpRect)
Set the sharp region bitmap result and his region.
|
public boolean needRenderFullResult()
AbstractOperation.ResultHolderneedRenderFullResult 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 setSharpRegionResult(android.graphics.Bitmap sharpRegion,
android.graphics.Rect sharpRect)
AbstractOperation.ResultHoldersetSharpRegionResult in interface AbstractOperation.ResultHoldersharpRegion - sharp region bitmapsharpRect - sharp region, should be the source region or a bigger region.public void setFullResult(@Nullable
android.graphics.Bitmap fullPreview)
AbstractOperation.ResultHoldersetFullResult in interface AbstractOperation.ResultHolderfullPreview - the full previewpublic void setBlurResult(android.graphics.Bitmap blurPreview)
AbstractOperation.ResultHoldersetBlurResult in interface AbstractOperation.ResultHolderblurPreview - the full previewpublic boolean needRenderSharpResult()
AbstractOperation.ResultHolderneedRenderSharpResult 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