Search in sources :

Example 76 with FilterRepresentation

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);
    }
}
Also used : FilterRedEyeRepresentation(com.android.gallery3d.filtershow.filters.FilterRedEyeRepresentation) FilterRepresentation(com.android.gallery3d.filtershow.filters.FilterRepresentation)

Example 77 with FilterRepresentation

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);
        }
    });
}
Also used : LayoutInflater(android.view.LayoutInflater) OnClickListener(android.view.View.OnClickListener) FilterRepresentation(com.android.gallery3d.filtershow.filters.FilterRepresentation) View(android.view.View)

Example 78 with FilterRepresentation

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;
}
Also used : ArrayList(java.util.ArrayList) FilterRepresentation(com.android.gallery3d.filtershow.filters.FilterRepresentation) FilterCropRepresentation(com.android.gallery3d.filtershow.filters.FilterCropRepresentation)

Aggregations

FilterRepresentation (com.android.gallery3d.filtershow.filters.FilterRepresentation)78 Action (com.android.gallery3d.filtershow.category.Action)12 FiltersManager (com.android.gallery3d.filtershow.filters.FiltersManager)12 CategoryAdapter (com.android.gallery3d.filtershow.category.CategoryAdapter)11 Point (android.graphics.Point)8 ImagePreset (com.android.gallery3d.filtershow.pipeline.ImagePreset)8 Bitmap (android.graphics.Bitmap)7 FilterUserPresetRepresentation (com.android.gallery3d.filtershow.filters.FilterUserPresetRepresentation)6 FilterShowActivity (com.android.gallery3d.filtershow.FilterShowActivity)5 FilterDualCamFusionRepresentation (com.android.gallery3d.filtershow.filters.FilterDualCamFusionRepresentation)5 FilterMirrorRepresentation (com.android.gallery3d.filtershow.filters.FilterMirrorRepresentation)5 MasterImage (com.android.gallery3d.filtershow.imageshow.MasterImage)5 FilterGradRepresentation (com.android.gallery3d.filtershow.filters.FilterGradRepresentation)4 FilterRotateRepresentation (com.android.gallery3d.filtershow.filters.FilterRotateRepresentation)4 ArrayList (java.util.ArrayList)4 Uri (android.net.Uri)3 LayoutInflater (android.view.LayoutInflater)3 View (android.view.View)3 OnClickListener (android.view.View.OnClickListener)3 FilterCropRepresentation (com.android.gallery3d.filtershow.filters.FilterCropRepresentation)3