public class LutColorFilter extends ImageFilter implements ImageFilter.FilterConfigIntensity
ImageFilter.FilterConfigIntensity
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
LutColorFilter(int name,
int thumbnailRes,
ImageSource lutImageSource,
int vTiles,
int hTiles,
int textureSize) |
|
LutColorFilter(int name,
int thumbnailRes,
int lutResource)
Deprecated.
|
protected |
LutColorFilter(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
protected void |
finalize() |
Bitmap |
getColorLut()
Return the Lut as Bitmap.
|
int |
getHorizontalTileCount() |
Bitmap |
getLutBitmap() |
android.support.v8.renderscript.Allocation |
getLutCube(android.support.v8.renderscript.RenderScript rs)
Return the Renderscript LUT Allocation
|
int |
getTextureSize() |
Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
int |
getVerticalTileCount() |
int |
hashCode() |
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
void |
preloadLut() |
void |
renderImage(android.support.v8.renderscript.Allocation allocationIn,
android.support.v8.renderscript.Allocation allocationOut,
float intensity,
boolean previewMode) |
Bitmap |
renderImage(Bitmap bitmap,
boolean previewRendering) |
Bitmap |
renderImage(Bitmap bitmap,
float intensity,
boolean previewMode)
Render the filter
|
void |
unloadLut() |
void |
writeToParcel(Parcel dest,
int flags) |
createViewHolder, getLayout, hasIntensityConfig, isSelectable, onDraw, release
generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag
clone, getClass, notify, notifyAll, toString, wait, wait, wait
generateBindData, generateBindDataAsync, getName, getVerticalLayout, isDirty, setDirtyFlag
public LutColorFilter(@StringRes int name, @DrawableRes int thumbnailRes, @NonNull ImageSource lutImageSource, int vTiles, int hTiles, int textureSize)
@Deprecated public LutColorFilter(@StringRes int name, @DrawableRes int thumbnailRes, @DrawableRes int lutResource)
protected LutColorFilter(Parcel in)
public int describeContents()
describeContents
in class ImageFilter
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
@Nullable public final Bitmap getColorLut()
public int getHorizontalTileCount()
public Bitmap getLutBitmap()
@NonNull public android.support.v8.renderscript.Allocation getLutCube(@NonNull android.support.v8.renderscript.RenderScript rs)
rs
- reference to the renderscript.public int getTextureSize()
@Nullable public Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class ImageFilter
maxWidth
- Size the drawable should be limited to.public int getVerticalTileCount()
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class ImageFilter
AbstractConfig.getThumbnailBitmap()
public void preloadLut()
preloadLut
in interface ImageFilterInterface
preloadLut
in class ImageFilter
public void renderImage(android.support.v8.renderscript.Allocation allocationIn, android.support.v8.renderscript.Allocation allocationOut, float intensity, boolean previewMode)
public Bitmap renderImage(Bitmap bitmap, boolean previewRendering)
renderImage
in class ImageFilter
@Nullable public Bitmap renderImage(@Nullable Bitmap bitmap, float intensity, boolean previewMode)
renderImage
in interface ImageFilter.FilterConfigIntensity
renderImage
in interface ImageFilterInterface
renderImage
in class ImageFilter
bitmap
- sourceTypeintensity
- filter intensitypreviewMode
- true if the renderer can reduce the quality to improve speed.public void unloadLut()
unloadLut
in interface ImageFilterInterface
unloadLut
in class ImageFilter
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class ImageFilter