use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorCurves method reflectCurrentFilter.
@Override
public void reflectCurrentFilter() {
super.reflectCurrentFilter();
FilterRepresentation rep = getLocalRepresentation();
if (rep != null && getLocalRepresentation() instanceof FilterCurvesRepresentation) {
FilterCurvesRepresentation drawRep = (FilterCurvesRepresentation) rep;
mImageCurves.setFilterDrawRepresentation(drawRep);
}
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorDualCamSketch method reflectCurrentFilter.
@Override
public void reflectCurrentFilter() {
super.reflectCurrentFilter();
FilterRepresentation rep = getLocalRepresentation();
if (rep != null && rep instanceof FilterDualCamBasicRepresentation) {
FilterDualCamBasicRepresentation dualRep = (FilterDualCamBasicRepresentation) rep;
mImageDualCam.setRepresentation(dualRep);
}
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorTruePortraitFusion method setUnderlayImageUri.
public void setUnderlayImageUri(Uri uri) {
mUnderlayUri = uri;
FilterRepresentation filter = getLocalRepresentation();
if (filter instanceof FilterTruePortraitFusionRepresentation) {
mImageFusion.setUnderlay(uri);
commitLocalRepresentation();
// save fusion underlay uri
GalleryUtils.setStringPref(mContext, mContext.getString(R.string.pref_trueportrait_fusion_underlay_key), (uri != null) ? uri.toString() : null);
}
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorTruePortraitFusion method reflectCurrentFilter.
@Override
public void reflectCurrentFilter() {
super.reflectCurrentFilter();
FilterRepresentation rep = getLocalRepresentation();
if (rep != null && rep instanceof FilterTruePortraitFusionRepresentation) {
FilterTruePortraitFusionRepresentation fusionRep = (FilterTruePortraitFusionRepresentation) rep;
mImageFusion.setRepresentation(fusionRep);
}
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorDualCamera method reflectCurrentFilter.
@Override
public void reflectCurrentFilter() {
super.reflectCurrentFilter();
FilterRepresentation rep = getLocalRepresentation();
if (rep != null && rep instanceof FilterDualCamBasicRepresentation) {
FilterDualCamBasicRepresentation dualRep = (FilterDualCamBasicRepresentation) rep;
mImageDualCam.setRepresentation(dualRep);
}
}
Aggregations