public class ImageLoadOperation extends AbstractOperation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ly.img.android.sdk.operator.AbstractEditorOperation.EditorProtectedAccessor
Helper class to access protected Editor methods.
|
AbstractOperation.Holder, AbstractOperation.MODE, AbstractOperation.OperationDoneListener, AbstractOperation.ResultHolder, AbstractOperation.SourceHolder| Constructor and Description |
|---|
ImageLoadOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doOperation() |
protected java.lang.String |
getIdentifier() |
int |
getImageAngle()
Get the real source image Exif rotation
|
int |
getImageHeight()
Get the real source image height
|
int |
getImageWidth()
Get the real source image width
|
AbstractOperation.MODE |
getOperationMode()
Return the current execution mode of this operator.
|
protected Operator.Priority |
getPriority() |
LayerContainerView |
getStickerStage()
Get the Sticker stage to add, edit or remove Sticker
|
static android.graphics.Bitmap |
getThumbnailBitmap(int size) |
void |
init(EditorPreview editorPreview) |
protected boolean |
isReady() |
protected void |
runOnUiThread(ly.img.android.sdk.operator.AbstractEditorOperation.UiRunnable runnable)
Run a part of the operation async on the next Main Thread frame.
|
void |
setPreviewSize(int width,
int height)
Set preview window size, to save Memory an Speedup preview by load a low resolution preview.
|
void |
setSharpRect(android.graphics.Rect sharpRect)
Load a sharp image preview
|
void |
setSourceImagePath(java.lang.String imagePath)
Set Image source path
|
compareTo, doOperation, equals, getOperationRunnable, getOperator, getResultBitmapHolder, hasBitmapHolder, hashCode, operationDone, toString@Nullable public static android.graphics.Bitmap getThumbnailBitmap(int size)
public void setSourceImagePath(java.lang.String imagePath)
imagePath - path of the image.@NonNull protected Operator.Priority getPriority()
getPriority in class AbstractOperationprotected java.lang.String getIdentifier()
getIdentifier in class AbstractOperationpublic void setPreviewSize(int width,
int height)
width - width in Pixelsheight - height in Pixelprotected boolean isReady()
public int getImageAngle()
public int getImageWidth()
public int getImageHeight()
public void setSharpRect(@Nullable
android.graphics.Rect sharpRect)
sharpRect - the zoom region rect@NonNull public AbstractOperation.MODE getOperationMode()
AbstractOperationgetOperationMode in class AbstractOperationAbstractOperation.MODEprotected boolean doOperation()
doOperation in class AbstractOperationpublic void init(EditorPreview editorPreview)
protected void runOnUiThread(ly.img.android.sdk.operator.AbstractEditorOperation.UiRunnable runnable)
runnable - UiRunnable implementation@NonNull public LayerContainerView getStickerStage()