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());
}
}
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);
}
Aggregations