Search in sources :

Example 6 with FilterChanSatRepresentation

use of com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation in project android_packages_apps_Gallery2 by LineageOS.

the class EditorChanSat method selectMenuItem.

protected void selectMenuItem(MenuItem item) {
    if (getLocalRepresentation() != null && getLocalRepresentation() instanceof FilterChanSatRepresentation) {
        FilterChanSatRepresentation csrep = (FilterChanSatRepresentation) getLocalRepresentation();
        switchToMode(csrep, getParameterIndex(item.getItemId()), item.getTitle().toString());
    }
}
Also used : FilterChanSatRepresentation(com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation)

Example 7 with FilterChanSatRepresentation

use of com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation in project android_packages_apps_Gallery2 by LineageOS.

the class EditorChanSat method computeIcon.

@Override
public void computeIcon(int n, BitmapCaller caller) {
    FilterChanSatRepresentation rep = getChanSatRep();
    if (rep == null)
        return;
    rep = (FilterChanSatRepresentation) rep.copy();
    ImagePreset preset = new ImagePreset();
    preset.addFilter(rep);
    Bitmap src = MasterImage.getImage().getThumbnailBitmap();
    caller.available(src);
}
Also used : Bitmap(android.graphics.Bitmap) ImagePreset(com.android.gallery3d.filtershow.pipeline.ImagePreset) FilterChanSatRepresentation(com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation)

Aggregations

FilterChanSatRepresentation (com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation)7 Bitmap (android.graphics.Bitmap)1 MenuItem (android.view.MenuItem)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 PopupMenu (android.widget.PopupMenu)1 TextView (android.widget.TextView)1 BasicParameterStyle (com.android.gallery3d.filtershow.controller.BasicParameterStyle)1 FilterView (com.android.gallery3d.filtershow.controller.FilterView)1 Parameter (com.android.gallery3d.filtershow.controller.Parameter)1 FilterRepresentation (com.android.gallery3d.filtershow.filters.FilterRepresentation)1 ImagePreset (com.android.gallery3d.filtershow.pipeline.ImagePreset)1