use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorRedEye method reflectCurrentFilter.
@Override
public void reflectCurrentFilter() {
super.reflectCurrentFilter();
FilterRepresentation rep = getLocalRepresentation();
if (rep != null && getLocalRepresentation() instanceof FilterRedEyeRepresentation) {
FilterRedEyeRepresentation redEyeRep = (FilterRedEyeRepresentation) rep;
mImageRedEyes.setRepresentation(redEyeRep);
}
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class EditorTruePortraitBasic method openUtilityPanel.
@Override
public void openUtilityPanel(LinearLayout accessoryViewList) {
accessoryViewList.removeAllViews();
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.filtershow_actionbar_trueportrait, accessoryViewList);
View editMask = accessoryViewList.findViewById(R.id.editMask);
editMask.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
FilterRepresentation representation = new FilterRepresentation("");
representation.setEditorId(EditorTruePortraitMask.ID);
((FilterShowActivity) mContext).loadEditorPanel(representation);
}
});
}
use of com.android.gallery3d.filtershow.filters.FilterRepresentation in project android_packages_apps_Gallery2 by LineageOS.
the class ImageStraighten method getFinalRepresentation.
public Collection<FilterRepresentation> getFinalRepresentation() {
ArrayList<FilterRepresentation> reps = new ArrayList<FilterRepresentation>(2);
reps.add(mLocalRep);
if (mInitialAngle != mLocalRep.getStraighten()) {
reps.add(new FilterCropRepresentation(mCrop));
}
return reps;
}
Aggregations